comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » MATLAB to IDL Conversion
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
MATLAB to IDL Conversion [message #88295] Tue, 08 April 2014 13:13 Go to next message
mikejohnryan08 is currently offline  mikejohnryan08
Messages: 5
Registered: April 2014
Junior Member
I was wondering, is there a simple way to convert a code from MATLAB to IDL? I am trying to run a previously written MATLAB script to create a 3d anaglyph from two images in FreeMat, but it is very slow. I've recently received a temporary license for IDL 8.3, which I would love to replicate this code in, as I believe both languages are capable of doing this.

But since I am still very unfamiliar with IDL I am having difficulty doing so. Any advice/help for converting this would be fantastic!
Re: MATLAB to IDL Conversion [message #88298 is a reply to message #88295] Tue, 08 April 2014 16:59 Go to previous messageGo to next message
chris_torrence@NOSPAM is currently offline  chris_torrence@NOSPAM
Messages: 528
Registered: March 2007
Senior Member
On Tuesday, April 8, 2014 2:13:37 PM UTC-6, mikejoh...@gmail.com wrote:
> I was wondering, is there a simple way to convert a code from MATLAB to IDL? I am trying to run a previously written MATLAB script to create a 3d anaglyph from two images in FreeMat, but it is very slow. I've recently received a temporary license for IDL 8.3, which I would love to replicate this code in, as I believe both languages are capable of doing this.
>
>
>
> But since I am still very unfamiliar with IDL I am having difficulty doing so. Any advice/help for converting this would be fantastic!

Well, you could download the following tool, and reverse engineer it:
http://sourceforge.net/projects/idl2matlab/

I don't understand why they chose IDL -> Matlab, as *clearly* you would always want to go the other direction, just as you propose.

Your main things to watch out for are the "backwards" arrays in Matlab - they use row-major ordering instead of IDL's column-major. Some google searches will help you out here.

Good luck!
-Chris
Re: MATLAB to IDL Conversion [message #88301 is a reply to message #88298] Wed, 09 April 2014 06:38 Go to previous messageGo to next message
Bill Nel is currently offline  Bill Nel
Messages: 31
Registered: October 2010
Member
On Tuesday, April 8, 2014 7:59:56 PM UTC-4, Chris Torrence wrote:
> On Tuesday, April 8, 2014 2:13:37 PM UTC-6, mikejoh...@gmail.com wrote:
>
>> I was wondering, is there a simple way to convert a code from MATLAB to IDL? I am trying to run a previously written MATLAB script to create a 3d anaglyph from two images in FreeMat, but it is very slow. I've recently received a temporary license for IDL 8.3, which I would love to replicate this code in, as I believe both languages are capable of doing this.
>
>>
>
>>
>
>>
>
>> But since I am still very unfamiliar with IDL I am having difficulty doing so. Any advice/help for converting this would be fantastic!
>
>
>
> Well, you could download the following tool, and reverse engineer it:
>
> http://sourceforge.net/projects/idl2matlab/
>
>
>
> I don't understand why they chose IDL -> Matlab, as *clearly* you would always want to go the other direction, just as you propose.
>
>
>
> Your main things to watch out for are the "backwards" arrays in Matlab - they use row-major ordering instead of IDL's column-major. Some google searches will help you out here.
>
>
>
> Good luck!
>
> -Chris

Matlab is 1-indexed, too -- IDL uses 0-based indexing for arrays.
Re: MATLAB to IDL Conversion [message #94711 is a reply to message #88298] Fri, 01 September 2017 09:47 Go to previous message
Sahar Dehnavi is currently offline  Sahar Dehnavi
Messages: 4
Registered: May 2017
Junior Member
On Wednesday, April 9, 2014 at 1:59:56 AM UTC+2, Chris Torrence wrote:
> On Tuesday, April 8, 2014 2:13:37 PM UTC-6, mikejoh...@gmail.com wrote:
>> I was wondering, is there a simple way to convert a code from MATLAB to IDL? I am trying to run a previously written MATLAB script to create a 3d anaglyph from two images in FreeMat, but it is very slow. I've recently received a temporary license for IDL 8.3, which I would love to replicate this code in, as I believe both languages are capable of doing this.
>>
>>
>>
>> But since I am still very unfamiliar with IDL I am having difficulty doing so. Any advice/help for converting this would be fantastic!
>
> Well, you could download the following tool, and reverse engineer it:
> http://sourceforge.net/projects/idl2matlab/
>
> I don't understand why they chose IDL -> Matlab, as *clearly* you would always want to go the other direction, just as you propose.
>
> Your main things to watch out for are the "backwards" arrays in Matlab - they use row-major ordering instead of IDL's column-major. Some google searches will help you out here.
>
> Good luck!
> -Chris


Hi all,

I have downloaded and installed the matlab2IDL from the sourceforge however, I have a problem that I do not know how can I use the toolbox to convert my idl codes into matlab .m-files.
I would appreciate any help that you can provide.
All the best,
Sahar
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: update vert_colors of new graphics
Next Topic: histogram and color bar

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 07:23:48 PDT 2025

Total time taken to generate the page: 0.00646 seconds