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 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