MATLAB Programming Fundamentals - MathWorks

(やまだぃちぅ) #1

Create Custom Property for Freezing Point


(^1) Open a new or existing System object.
(^2) In the MATLAB Editor, select Insert Property > Custom Property.
(^3) In the Custom Property dialog box, under System Object Attributes, select
Nontunable. Under MATLAB Property Attributes, select Constant. Leave
GetAccess as public. SetAccess is grayed out because properties of type constant
cannot be set using System object methods.
4 Click Insert and the following code is inserted into the System object definition:
properties(Nontunable, Constant)
Property
end
(^5) Replace Property with your property.
Insert System Object Code Using MATLAB Editor

Free download pdf