Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
NCTM or The Math Forum.



Re: Finding negative array elements then replacing them.
Posted:
Sep 23, 2011 2:55 PM


A = [ 0.76 0.28 0.31 0.86 0.79]
Alternatively you can simply use this one line without allocating idx to a new array: A(A<0)=A(A<0)+2*pi;



