Creating 4x4 matrix in SIMULINK

13 visualizaciones (últimos 30 días)
furkan karaca
furkan karaca el 9 de Abr. de 2011
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 comentario
furkan karaca
furkan karaca el 9 de Abr. de 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.

Iniciar sesión para comentar.

Respuesta aceptada

Paulo Silva
Paulo Silva el 9 de Abr. de 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.
  1 comentario
furkan karaca
furkan karaca el 9 de Abr. de 2011
thank you for help, it worked so much.

Iniciar sesión para comentar.

Más respuestas (1)

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

Iniciar sesión para comentar.

Categorías

Más información sobre Simulink en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by