MATLAB Object-Oriented Programming

(Joyce) #1

Use dot notation to access the property value:


o.Prop


ans =


10-Nov-2005 10:38:14


The constructor should support a no argument syntax so MATLAB can create default
objects. For more information, see “No Input Argument Constructor Requirement” on
page 9-25.


For more information on the components of a class definition, see “Class Components” on
page 5-5


See Also


Related Examples



  • “Create a Simple Class” on page 2-2

  • “Developing Classes — Typical Workflow” on page 3-8

  • “Representing Structured Data with Classes” on page 3-19


See Also
Free download pdf