Class Method to Implement Description
size Determine the dimensions of an arraySee “Use of size and numel with Classes” on page
12-77
subsindex Support using an object in indexing expressionsSee “Objects in Index Expressions” on page 17-
37
Saving and Loading Objects
loadobj and saveobj Customize behavior when loading and saving
objectsSee “Object Save and Load”
Reshape and Rearrange
permute Rearrange dimensions of N-D array
transpose Transpose vector or matrix
ctranspose Complex conjugate transpose
reshape Reshape array
Determine Size and Shape
isscalar Determine if the input is a scalar
isvector Determine if the input is a vector
ismatrix Determine if the input is a matrix
isempty Determine if the input is emptyOverload Functions and Override Methods
Overloading and overriding are terms that describe techniques for customizing class
behavior. Here is how we use these terms in MATLAB.OverloadingOverloading means that there is more than one function or method having the same name
within the same scope. MATLAB dispatches to a particular function or method based on
the dominant argument. For example, the timeseries class overloads the MATLAB plot17 Specialize Object Behavior