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


_______________________________________________
NumPy-Discussion mailing list
[email protected]
http://mail.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to