isOutputFixedSizeImpl
Class:matlab.System
Fixed- or variable-size output ports
Syntax
[flag_1,flag_2,...flag_n] = isOutputFixedSizeImpl(obj)
Description
[
returns whether each output port is fixed size. The number of outputs must match the value returned from theflag_1,flag_2
,...flag_n] = isOutputFixedSizeImpl(obj
)getNumOutputs
method, which is the number of output arguments listed in thestepImpl
method.
For System objects with one input and one output and where you want the input and output fixed sizes to be the same, you do not need to implement this method. In this caseisOutputFixedSizeImpl
assumes the input and output fixed sizes are the same and returns the fixed size of the input.
If your System object has more than one input or output or you need the output and input fixed sizes to be different, you must implement theisOutputFixedSizeImpl
method to define the output fixed size. You also must use thepropagatedInputFixedSize
method if the output fixed size status differs from the input fixed size status.
Run-Time Details
During Simulink®model compilation and propagation, theMATLAB System(Simulink)block calls theisOutputFixedSize
method, which then calls theisOutputFixedSizeImpl
method to determine the output fixed size.
All inputs default to variable-size inputs For these inputs, the output size is the maximum input size.
Method Authoring Tips
You must set
Access = protected
for this method.You cannot modify any properties in this method.
Input Arguments
Output Arguments
Examples
版本历史
Introduced in R2013b