<div class="gmail_quote">On Tue, Jan 25, 2011 at 3:13 PM, Matt Funk <span dir="ltr"><<a href="mailto:mafunk@nmsu.edu">mafunk@nmsu.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
1) a = rand(10,1)<br>
2) Y = a<br>
3) mask = Y > 100;<br>
4) Y(mask) = 100;<br>
5) a = a+Y<br>
<br>
Basically i am getting stuck on line 4). I was wondering if it is<br>
possible or not with python?<br>
(The above is working matlab code)<br></blockquote></div><br>For those of us who don't know Matlab, what does that code do?<br><br>-- <br>Jerry<br>