I am trying to add a value to a number if the number in the row > 0.5. Why is it that the following syntax with x = [0.1 0.2 0.3 0.7 0.8 0.9 0.1 0.2 0.3]; works with: x(x~=0)=x+1 (giving 1.1000 1.2000 1.3000 1.7000 1.8000 1.9000 1.1000 1.2000 1.3000) but not with: x(x>0.5)=x+1.
My goal is to add 1 to every value exceeding 0.5 Thank you
Best Answer