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


giusep
Posts:
6
Registered:
4/3/12


How to replace values<300 in a matrice
Posted:
Apr 9, 2012 6:35 PM


I have a matrix 2D (M) and i want to replace each value <300 with the number 3.
I'm trying with the function FIND:
[a b]=find[M<300];
a and b are 2 vectors in this way i have in a and b the indices of the positions of values<300. But how can i replace this values?? I was thinking about a FOR CYCLE... but it's difficult for me... thanks everybody for your help



