MATLAB Object-Oriented Programming

(Joyce) #1

For example, this class defines two enumeration members that represent logical false
and true:


classdef Boolean < logical
enumeration
No (0)
Yes (1)
end
end


See, “Define Enumeration Classes” on page 14-5 for more information.


Related Information


“Folders Containing Class Definitions” on page 6-17


Class Components
Free download pdf