How to extract elements of a matrix coming as output from a simulink block?
9 次查看(过去 30 天)
显示 更早的评论
I have created a MATLAB Function block in my simulink model which takes 6 input Forces(I separately input all the 6 Forces) and many other constant values. The outputs i get are a matrix and 2 vectors. Can i pass the matrix and vectors directly to another matlab function block which is expecting a matrix input?Else, how do i access the matrix elements and construct a new matrix and then pass it to my second matlab function block?
0 个评论
回答(1 个)
Birdman
2018-6-5
See the attached example. I made necessary explanations on the Simulink model. Check the contents of the MATLAB Functions.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Simulink Functions 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!