Direct feedthrough status of input
[flag1,...,flagN] = isInputDirectFeedthroughImpl(obj)
[flag1,...,flagN] = isInputDirectFeedthroughImpl(obj,input,input2,...)
[
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.
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 |
isInputDirectFeedthroughImpl
is called by the MATLAB System block.
You must set Access = protected
for this method.
You cannot modify, implement, or access tunable properties in this method.