|
From: Bruce S. <bso...@gm...> - 2006-02-09 13:56:28
|
Hi, The example of ndim to give the rank is not the same as the Matlab function rank(a). See http://en.wikipedia.org/wiki/Rank_of_a_matrix for definition of rank that I would think that most people would use if they use Matlab and is provided by rank(a). I have not used the latest numpy but the equivalent function is not present in numarray/Numeric (to my knowledge) so you have to find some other way like using svd. Regards Bruce On 2/9/06, Bill Baxter <wb...@gm...> wrote: > I added some content to the "NumPy/SciPy for Matlab users" page on the sc= ipy wiki. > > But my knowledge of NumPy/SciPy isn't sufficient to fill in the whole cha= rt of equivalents that I laid out. > If folks who know both could browse by and maybe fill in a blank or two, = that would be great. I think this will be a helpful "getting started" page= for newbies to NumPy coming from matlab, like me. One of the most frustra= ting things is when you sit down and can't figure out how to do the most ba= sic things that do in your sleep in another environment (like making a colu= mn vector). So hopefully this page will help. > > The URL is : http://www.scipy.org/Wiki/NumPy_for_Matlab_Addicts > > Thanks, > Bill Baxter > |