On Tue, Jan 25, 2011 at 3:13 PM, Matt Funk <mafunk at nmsu.edu> wrote: > 1) a = rand(10,1) > 2) Y = a > 3) mask = Y > 100; > 4) Y(mask) = 100; > 5) a = a+Y >> Basically i am getting stuck on line 4). I was wondering if it is > possible or not with python? > (The above is working matlab code) > For those of us who don't know Matlab, what does that code do? -- Jerry -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-list/attachments/20110125/587f5050/attachment-0001.html>