Displaying an error message within the axes on a GUI
1 view (last 30 days)
Show older comments
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.
0 Comments
Answers (1)
Walter Roberson
on 28 Apr 2014
You can test the values yourself, and text() the appropriate message into place.
0 Comments
See Also
Categories
Find more on Annotations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!