[SciPy-user] Automatic MATLAB to scipy/numpy/pylab conversion
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
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...
More information about the SciPy-user