isInputDirectFeedthroughImpl
Class: matlab.System
Direct feedthrough status of input
Syntax
[flag1,...,flagN] = isInputDirectFeedthroughImpl(obj)
[flag1,...,flagN] = isInputDirectFeedthroughImpl(obj,input,input2,...)
Description
[
specifies
whether each input is a direct feedthrough input. If direct feedthrough is
flag1,...,flagN
] = isInputDirectFeedthroughImpl(obj
) true
, the output depends on the input at each time instant.
[
uses one or more of the System object input specifications to determine whether inputs have
direct feedthrough.flag1,...,flagN
] = isInputDirectFeedthroughImpl(obj
,input,input2,...
)
If you do not include the isInputDirectFeedthroughImpl
method in your
System object™ class definition file, all inputs are assumed to be direct feedthrough.
Code Generation
The following cases describe when System objects in Simulink® code generation use direct or nondirect feedthrough.
System object's code generation support | Uses a propagation Impl method | Simulink Code Generation Result |
---|---|---|
Y | N | Simulink automatically infers the direct feedthrough settings from the System object code. |
Y | Y | Simulink does not automatically infer the direct feedthrough
settings. Instead, it uses the value returned by the
isInputDirectFeedthroughImpl method. |
N | — | Default |
Run-Time Details
isInputDirectFeedthroughImpl
is called by the MATLAB System (Simulink) block.
Method Authoring Tips
You must set
Access = protected
for this method.You cannot modify, implement, or access tunable properties in this method.
Do not use the input values of the System object in this method if you intend to use the System object in Simulink using the MATLAB System (Simulink) block. You can only query the inputs for their specifications namely data type, complexity and size.
Input Arguments
Output Arguments
Examples
Version History
Introduced in R2013b