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.

ssGetSFcnParam

Get a parameter of an S-Function block

Syntax

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

Arguments

S

SimStruct representing 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++

Example

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

Introduced before R2006a

Was this topic helpful?