I have some code that works out the y value of the first point on my graph where x>6. This is the 'failure' point.
plot(x,y), hold all
I want to the display whatever this y_value is in a message box on the figure. I don't understand how I can get it to display the number that 'failure=find(x>6,1);' creates.
If I did msgbox('failure') it would just display the word 'failure' in the box, not the number. Any ideas?