How do I access the properties of an object in MATLAB by using GUI and not using get()?

7 visualizaciones (últimos 30 días)
I would like to access the properties of an object in MATLAB by using GUI and not using get().

Respuesta aceptada

MathWorks Support Team
MathWorks Support Team el 18 de Oct. de 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.

Más respuestas (0)

Categorías

Más información sobre Use COM Objects in MATLAB en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by