I have a 10 by 10 matrix say z = rand(10,10), x = linspace(0,1,10) and y = linspace(0,1,10). I am plotting a surface plot: surf(x,t,z) and would like it to stop plotting when z < 0.5. I have used the while loop but but it runs forever. Any alternatives or recommendations? Thank you.
MATLAB: How to stop a plot when values get to negative.
plotting
Best Answer