How to get value from axes?

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
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')

Tags

Asked:

on 8 Apr 2015

Edited:

on 11 Apr 2015

Community Treasure Hunt

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

Start Hunting!