How to get value from axes?
Show older comments
Hello!
Is there any specific function to get values from axes in GUI Matlab? For example, we can get value from Edit:
n = str2double( get(handles.edit1,'string') );
Answers (1)
Geoff Hayes
on 11 Apr 2015
Edited: Geoff Hayes
on 11 Apr 2015
Kate - please clarify what you mean by to get values from axes in GUI Matlab. You can view the list of property name and value pairs by running the following
get(handles.axes1)
where axes1 is assumed to be an axes in your GUI. If you know the property you wish to extract, then you could just do (for example)
get(handles.axes1,'XColor')
See http://www.mathworks.com/help/matlab/ref/axes-properties.html for a list of properties in R2015a.
Categories
Find more on Subplots 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!