Re: IDL2MATLAB [message #29558 is a reply to message #29471] |
Wed, 27 February 2002 02:13   |
Nigel Wade
Messages: 286 Registered: March 1998
|
Senior Member |
|
|
Liam E. Gumley wrote:
> Ethan wrote:
>>
>
>
> A complicating factor is that in IDL, arrays are stored in column-major
> order (the same as FORTRAN), while in Matlab, arrays are stored in
> row-major order (the same as C).
Substitute IDL for MATLAB. In IDL they are the same as in C. I can never
remember which is column-major or row-major, but I know that using MATLAB
multi-dimension matrices in C mex files is a real pain because of the array
indexing difference.
--
-----------------------------------------------------------
Nigel Wade, System Administrator, Space Plasma Physics Group,
University of Leicester, Leicester, LE1 7RH, UK
E-mail : nmw@ion.le.ac.uk
Phone : +44 (0)116 2523568, Fax : +44 (0)116 2523555
|
|
|