[Numpy-discussion] matlab for numpy users

Christian K. ckkart@hoc....
Thu Sep 17 01:58:22 CDT 2009


Hi,

this is probaby an unusual question here from someone used to numpy who is 
forced to work with matlab and it is not exactly the right place to ask. Sorry 
for that.

Is there something like broadcasting in matlab? E.g. how can I do something 
like that:

a = ones((50,50), dtype=float)

time = linspace(0,1,101)

res = a*exp(-time[:,newaxis,newaxis])


Thanks in advance, Christian




More information about the NumPy-Discussion mailing list