MATLAB Object-Oriented Programming

(Joyce) #1
Use the not operator before an attribute name to define it as false:

methods (~Static)
...
end

Is the same as:

methods (Static = false)
...
end

All attributes that take a logical value (that is, true or false) have a default value of
false. Therefore, specify an attribute only if you want to set it to true.

See Also


Related Examples



  • “Evaluation of Expressions in Class Definitions” on page 6-10


5 Class Definition—Syntax Reference

Free download pdf