[SciPy-user] Matlab to numpy

Nils Wagner nwagner at iam.uni-stuttgart.de
Thu Jun 22 06:59:45 CDT 2006


 I try to convert a Matlab code into Numpy/Scipy

What is equaivalent to

np = 36
t2 =rand(np,1)
r2=rand(np,1)./max(abs(sin(t2)),abs(cos(t2)))

in numpy

np=36
t2 = rand(np)
r2 = rand(np)/...  ?

Nils



More information about the SciPy-user mailing list