Borrar filtros
Borrar filtros

Why is there a different syntax in the documentation for the S-function callback method mdlSetDefa​ultPortDim​ensionInfo in Simulink 6.0 (R14) and the example listed in the reference sfun_matadd.c?

1 visualización (últimos 30 días)
The online help documentation for the C S-function API method: mdlSetDefaultPortDimensionInfo conflicts with the example listed:
matlabroot/simulink/src/sfun_matadd.c
The documentation defines the usage syntax, to be:
mdlSetDefaultPortDimensionInfo(SimStruct *S, int_T port)
However when you look at the standard C S-function template document:
matlabroot/simulink/src/sfuntmpl_doc.c
and the example file mentioned, It only uses 1 input argument:
static void mdlSetDefaultPortDimensionInfo(SimStruct *S).
What is the correct usage syntax?

Respuesta aceptada

MathWorks Support Team
MathWorks Support Team el 27 de Jun. de 2009
This is an error within the documentation for Simulink within the S-function callback method mdlSetDefaultPortDimensionInfo. The documentation should read as follows:
Syntax
void mdlSetDefaultPortDimensionInfo(SimStruct *S)

Más respuestas (0)

Productos

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by