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 (최근 30일)
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?

채택된 답변

MathWorks Support Team
MathWorks Support Team 2009년 6월 27일
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)

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Block and Blockset Authoring에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by