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


Math Forum
»
Discussions
»
Software
»
comp.softsys.matlab
Notice: We are no longer accepting new posts, but the forums will continue to be readable.
Topic:
Finding negative array elements then replacing them.
Replies:
5
Last Post:
Sep 23, 2011 3:09 PM




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;



