How i can transfer parameters to the s function.My parameters are matrices
조회 수: 5 (최근 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!