[SciPy-user] Automatic MATLAB to scipy/numpy/pylab conversion

Isaul Vargas isaulv@gmail....
Wed Jul 9 12:24:59 CDT 2008


There are some issues in converting Matlab code to Python.
Matlab has "dynamic arrays". Suppose you have a 1x 3 array, and you want to
add a new row via this syntax:
a[4,:] = b;
This won't work in python. You will have to preallocated the array size
somehow.
Second, it's the 0 based indexing. Generally you shift indices by -1, but
sometimes you may have to add a 1 to the end range .

Also concatenation can be a pain.

Hope this helps.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/scipy-user/attachments/20080709/c4d76567/attachment.html 


More information about the SciPy-user mailing list