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!