Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

ssGetInputPortComplexSignal

Determine whether an input port accepts complex signals.

Syntax

CSignal_T ssGetInputPortComplexSignal(SimStruct *S,input_T port)

Arguments

S

SimStruct representing an S-Function block.

port

Index of an input 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 input port specified by the index port.

Languages

C, C++

Example

See the S-function sfun_cplx.c used in sfcndemo_cplx.

Introduced before R2006a

Was this topic helpful?