On Tue, Jan 25, 2011 at 3:13 PM, Matt Funk <maf...@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
-- http://mail.python.org/mailman/listinfo/python-list