Products & Services Solutions Academia Support User Community Company

Learn more about Simulink   

ssGetOutputPortComplexSignal - Get the numeric type (complex or real) of an output port

Syntax

CSignal_T ssGetOutputPortComplexSignal(SimStruct *S, int_T port)

Arguments

S

SimStruct representing an S-Function block.

port

Index of an output port.

Returns

COMPLEX_YES (1) if port accepts complex signals, COMPLEX_NO (0) if port does not accept complex signals, and COMPLEX_INHERITED (-1) if port inherits its numeric type from the port to which it is connected.

Description

Use to obtain the numeric type of the output port specified by the index port.

Languages

C, C++

Example

See the S-function matlabroot/toolbox/simulink/simdemos/simfeatures/src/sfun_cplx.c used in sfcndemo_cplx.mdl.

See Also

ssSetOutputPortComplexSignal

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS