Main Content

ssGetSFcnParam

Get a parameter of an S-Function block

Syntax

const mxArray *ssGetSFcnParam(SimStruct *S, int_T index)

Arguments

S

SimStruct that represents an S-Function block.

index

Index of the parameter to be returned.

Returns

A pointer (const mxArray *) to the value of the S-function parameter specified by index.

Description

Use in any routine to access a parameter entered in the S-Function Block Parameters dialog box, where index starts at 0 and is less than ssGetSFcnParamsCount(S).

Languages

C, C++

Examples

See the S-function stvctf.c used in sfcndemo_stvctf and the S-function sfun_atol.c used in sfcndemo_sfun_atol.

Version History

Introduced before R2006a