output
Query current output of a System object
Description
[
queries the current output of a System object™.y1, y2 ..., yn
] = output(obj
)
Examples
Query System object for current outputs
Call output to check the current output of a System object.
Consider a System object object defined as,
classdef UnitDelayNondirect < matlab.System % UnitDelayNondirect Delay input by one time step properties(DiscreteState) State end methods(Access = protected) function resetImpl(obj) obj.State = 0; % Initialize states end function y = outputImpl(obj, ~) y = obj.State; % Output current state end function updateImpl(obj,u) obj.State = u; % Update state with input end end end
Create an instance of the System object and provide it with an input.
a = UnitDelayNondirect(); out = a(1);
Call output to check the output of the System object.
outCurrent = output(a);
Input Arguments
obj
— System object
System object
System object handle used to access properties, states, and methods specific to the object.
Output Arguments
y1, y2 ..., yn
— Outputs of System object
outputs
Current outputs calculated from the specified algorithm. The number of outputs must
match the number of outputs returned by the getNumOutputs
method.
Version History
Introduced in R2012a
See Also
MATLAB コマンド
次の MATLAB コマンドに対応するリンクがクリックされました。
コマンドを MATLAB コマンド ウィンドウに入力して実行してください。Web ブラウザーは MATLAB コマンドをサポートしていません。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)