FUNCTION REFERENCE
properties
List the public properties of a class.
List the public properties of a class.
Syntax
properties(obj); properties('Name')Syntax
names = properties(obj); names = properties('Name')For an object of a classdef class, or the name of a class file in the Current Folder, returns the public properties (Constant ones included) in declaration order as a column cell. Without an output it prints "Properties for class Name:" and one name per line, indented four spaces, with a blank line before and after the heading. properties('MException') lists the MException properties.
Example
properties('MException') % {'identifier'; 'message'; 'cause'; 'stack'}Differences from MATLAB: Classes are classdef value classes (see classdef) and MException; other built-in classes are not listed.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.