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 
Return to the default flat view Create a new topic Submit Reply
Re: MATLAB to IDL Conversion [message #88301 is a reply to message #88298] Wed, 09 April 2014 06:38 Go to previous messageGo to previous 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.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
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 11:47:59 PDT 2025

Total time taken to generate the page: 0.00430 seconds