MATLAB Answers

How to extract elements of a matrix coming as output from a simulink block?

17 ビュー (過去 30 日間)
Sreeranj Jayadevan
Sreeranj Jayadevan 2018 年 6 月 5 日
回答済み: Birdman 2018 年 6 月 5 日
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 件のコメント

サインイン to comment.

回答 (1 件)

Birdman
Birdman 2018 年 6 月 5 日
See the attached example. I made necessary explanations on the Simulink model. Check the contents of the MATLAB Functions.

  0 件のコメント

サインイン to comment.

サインイン してこの質問に回答します。

タグ


Translated by