Displaying an error message within the axes on a GUI

1 view (last 30 days)
For my project I am plotting information on the axes. I was wondering if I could display an error message in the axes area if the input values were either negative or letters. I don't want it to plot anything if the inserted values are not positive.

Answers (1)

Walter Roberson
Walter Roberson on 28 Apr 2014
You can test the values yourself, and text() the appropriate message into place.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!