How i can transfer parameters to the s function.My parameters are matrices
1 次查看(过去 30 天)
显示 更早的评论
I am writing a s function. In this function are parameter matrices. How I can calculate a 6 * 6 matrices as derivates in a S function
0 个评论
回答(1 个)
Ankit Bhatnagar
2017-5-15
编辑:Ankit Bhatnagar
2017-5-15
Hi,
Firstly, you can specify the number of Inputs, Outputs, states and parameters an S-function has using 'mdlInitializeSizes'. Refer the following documentation link for details:
Then get hold of a parameter using 'ssGetSFcnParam'. More details can be found at:
Check the example mentioned in the above link for reference and use the Matrices to calculate product in the S-function.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Block and Blockset Authoring 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!