How do I access the properties of an object in MATLAB by using GUI and not using get()?
6 views (last 30 days)
Show older comments
I would like to access the properties of an object in MATLAB by using GUI and not using get().
Accepted Answer
MathWorks Support Team
on 18 Oct 2013
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.
0 Comments
More Answers (0)
See Also
Categories
Find more on Use COM Objects in MATLAB in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!