Creating 4x4 matrix in SIMULINK

13 ビュー (過去 30 日間)
furkan karaca
furkan karaca 2011 年 4 月 9 日
Hello everyone,
I need to create 4x4 matrix in simulink. Not like writing in "Constant" block, i mean 4x4 form of the "Create 3x3 Matrix".
I look everywhere but i couldnt see, so i thought; "am i searching wrong thing?".
For example; what for i need that:
M=[ M1 M2; M3 M4]
M1=[ sin(phi)*cos(phi) sin(phi.dot); cos(phi.dot) sin(tita.dot)^2]
(phi and tita will come with feedback, viz they are not constant)
M2, M3, M4 are like M1 and this will be created in simulink.
I need to use M to multiply it with a constant. If i would have "create 4x4 matrix block" i could make them (Ms)link to 4x4 matrix and i think problem will be solved.
If you have got that library, could you share?
Thank you for interest and help!
Best regards.
  1 件のコメント
furkan karaca
furkan karaca 2011 年 4 月 9 日
By the way, there must be 16 input and 1 output on that.
for example there is 9 input(m11, m12, m13, m21, m22, m23, m31, m32, m33) on "Create 3x3 matrix" block.

サインインしてコメントする。

採用された回答

Paulo Silva
Paulo Silva 2011 年 4 月 9 日
You can turn that 3x3 matrix into any matrix, just be creative, edit the Mask (Look Under Mask for the subsystem), make it 4x4 and save it.
  1 件のコメント
furkan karaca
furkan karaca 2011 年 4 月 9 日
thank you for help, it worked so much.

サインインしてコメントする。

その他の回答 (1 件)

furkan karaca
furkan karaca 2011 年 4 月 10 日
I tried, i was seemed useful but i noticed that; it's not making block to 4x4 matrix really. It s still 3x3 altought it seem 4x4.
i would like to share it to show you but i couldnt find upload button so used another site.
here it
start and see.
thank you already
  2 件のコメント
Paulo Silva
Paulo Silva 2011 年 4 月 10 日
That file doesn't work on my simulink, try it just with the mux with 16 inputs and reshape (4x4 output)
furkan karaca
furkan karaca 2011 年 4 月 10 日
ok thanks, i think it s done. only some syntax error has left.
thank you for help again:)

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeSimulink についてさらに検索

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by