MATLAB: How to access the properties of an object in MATLAB by using GUI and not using get()

editorinspectinspectorMATLABpropeditproperty

I would like to access the properties of an object in MATLAB by using GUI and not using get().

Best Answer

There are different methods to access the properties of the objects:
Method 1: (Using command line)
Use the 'INSPECT' command at the command line to access the 'PROPERTY INSPECTOR' window of the selected object. Note that the Property Insppector does not list all the properties of the selected object.
Example 1:
a = plot(1:10); %
inspect(a);
Example 2: ( to inspect different objects in the same plot)
a1 = plot(1:10); % object 1
hold on;
a2 = plot (5: 20);
inspect(a1); % diplays properties of object a1
inspect(a2); % diplays properties of object a2
Method 2: (Interactively using GUI)
Once the object is created,
1) Go to 'VIEW' on the top menu in the plot window
2) Select 'PROPERTY EDITOR' and then SELECT the object (by clicking on it) in the plot area whose properties you wish to observe.
3) Select 'MORE PROPERTIES' option (bottom right side) in the plot window and then you will view the 'PROPERTY INSPECTOR' window.
Method 3:
You could also use 'PROPEDIT' to study the properties.