MATLAB Programming Fundamentals - MathWorks

(やまだぃちぅ) #1

Methods Methods commonly used in System object definitions. The MATLAB Editor creates
only the method structure. You specify the actions of that method.


The Insert Method menu organizes methods by categories, such as Algorithm,
Inputs and Outputs, and Properties and States. When you select a method from
the menu, the MATLAB Editor inserts the method template in your System object
code. In this example, selecting Insert Method > Release resources inserts the
following code:

function releaseImpl(obj)
% Release resources, such as file handles
end

If a method from the Insert Method menu is present in the System object code, that
method is shown shaded on the Insert Method menu:

Insert System Object Code Using MATLAB Editor
Free download pdf