MATLAB Object-Oriented Programming

(Joyce) #1

ans =


1


findobj returns an array of meta.method objects for the static methods. In this case,
the list of static methods is not empty. Therefore, there are static methods defined by this
class.


Get the names of any static methods from the meta.method array:


staticMethodInfo = findobj([mc.MethodList(:)],'Static',true);
staticMethodInfo(:).Name


ans =


empty


The name of the static method (there is only one in this case) is empty. Here is the
information from the meta.method object for the empty method:


staticMethodInfo


method with properties:


Name: 'empty'
Description: 'Returns an empty object array of the given size'
DetailedDescription: ''
Access: 'public'
Static: 1
Abstract: 0
Sealed: 0
Hidden: 1
InputNames: {'varargin'}
OutputNames: {'E'}
DefiningClass: [1x1 meta.class]


See Also


empty


Related Examples



  • “Get Information About Properties” on page 16-14


See Also
Free download pdf