Re: Numeric and matlab

2006-02-07 Thread malv
A convincing experience is to 'translate' some substantial matlab matrix code into python. You will at once see the difference between a true programming language and matlab Further, also look at matplotlib. malv -- http://mail.python.org/mailman/listinfo/python-list

Re: Numeric and matlab

2006-02-06 Thread Brian Blais
Bas wrote: > I am also considering a switch from Matlab to NumPy/SciPy at some > point. > > Note that in the last version of Matlab (7?) you don't have to use > 'find', but you now can 'conditional arrays' as an index, so instead > of > idx=find(a>5); > a(idx)=6; > you can do: > cond=a>5; >

Re: Numeric and matlab

2006-02-06 Thread Brian Blais
Robert Kern wrote: > A better place to ask would be [EMAIL PROTECTED] . By the > way, Numeric has undergone a rewrite and is now known as numpy. > thanks for the pointer! it is a bit confusing with all of the different numerical modules (Numeric, numpy, scipy, ScientificPython, numarray, etc...

Re: Numeric and matlab

2006-02-06 Thread Bas
Hi, I am also considering a switch from Matlab to NumPy/SciPy at some point. Note that in the last version of Matlab (7?) you don't have to use 'find', but you now can 'conditional arrays' as an index, so instead of idx=find(a>5); a(idx)=6; you can do: cond=a>5; a(cond) = 6; or even shor

Re: Numeric and matlab

2006-02-05 Thread Schüle Daniel
Hello, [...] > > I'm sure there are more, but these jump out at me as I'm going. It > seems as if the idx=find() stuff can be done with Numeric.nonzeros(), > but you can't index with that, like > > a=Numeric.arange(1,11,1) > idx=Numeric.nonzeros(a) import Numeric as N N.nonzero without s :)

Re: Numeric and matlab

2006-02-05 Thread Robert Kern
Brian Blais wrote: > Hello, > > Most of my experience is with Matlab/Octave, so I am a Python newbie (but > enjoying > it! :) ) A better place to ask would be [EMAIL PROTECTED] . By the way, Numeric has undergone a rewrite and is now known as numpy. http://numeric.scipy.org > There are a l