Why is there a different syntax in the documentation for the S-function callback method mdlSetDefaultPortDimensionInfo 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
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
추가 답변 (0개)
참고 항목
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!