Creating 4x4 matrix in SIMULINK

13 views (last 30 days)
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 Comment
furkan karaca
furkan karaca on 9 Apr 2011
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.

Sign in to comment.

Accepted Answer

Paulo Silva
Paulo Silva on 9 Apr 2011
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.

More Answers (1)

furkan karaca
furkan karaca on 10 Apr 2011
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 Comments
Paulo Silva
Paulo Silva on 10 Apr 2011
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 on 10 Apr 2011
ok thanks, i think it s done. only some syntax error has left.
thank you for help again:)

Sign in to comment.

Categories

Find more on Simulink in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!