MATLAB Programming Fundamentals - MathWorks
Process Tuned Properties This example shows how to specify the action to take when a tunable property value changes during simul ...
(1+log(1:obj.NumNotes)/log(12)); end function hz = stepImpl(obj,noteShift) % A noteShift value of 1 corresponds to obj.MiddleC h ...
Define Composite System Objects This example shows how to define System objects that include other System objects. Define a band ...
reset(obj.pHighpass); end end end Class Definition File for Lowpass FIR Component of Bandpass Filter classdef LowpassFIRFilter & ...
State end methods (Access = protected) function setupImpl(obj) obj.State = zeros(length(obj.Numerator)-1,1); end function y = st ...
Define Finite Source Objects This example shows how to define a System object that performs a specific number of steps or specif ...
obj.NumSteps = obj.NumSteps + 1; y = obj.NumSteps; else y = 0; end end function bDone = isDoneImpl(obj) bDone = obj.NumSteps==2; ...
Save and Load System Object This example shows how to load and save a System object. Save System Object and Child Object Define ...
[email protected]
(obj,s,isInUse); end end Complete Class Definition Files with Save and Load The Counter class defini ...
methods function obj = MySaveLoader(varargin)
[email protected]
(); setProperties(obj,nargin,varargin{:}); end function set.depen ...
end end function loadObjectImpl(obj,s,isInUse) % Load child System objects obj.child = matlab.System.loadObject(s.child); % Load ...
Define System Object Information This example shows how to define information to display for a System object. Define System Obje ...
function y = stepImpl(obj,u) if (u > obj.Threshold) obj.Count = obj.Count + 1; end y = obj.Count; end function s = infoImpl(o ...
Handle Input Specification Changes This example shows how to control the input specifications for a System object. You can contr ...
methods (Access = protected) function flag = isInputComplexityMutableImpl(~,~) flag = false; end function flag = isInputSizeData ...
function flag = isInputComplexityMutableImpl(~,~) flag = false; end function flag = isInputDataTypeMutableImpl(~,~) flag = false ...
Summary of Call Sequence In this section... “Setup Call Sequence” on page 34-59 “Running the Object or Step Call Sequence” on pa ...
Running the Object or Step Call Sequence This hierarchy shows the actions performed when you call the step function. 34 System o ...
Summary of Call Sequence ...
Reset Method Call Sequence This hierarchy shows the actions performed when you call the reset function. Release Method Call Sequ ...
«
70
71
72
73
74
75
76
77
78
79
»
Free download pdf