Creating 4x4 Matrix Block in Simulink

Click For Summary
SUMMARY

The discussion centers on creating a 4x4 matrix block in Simulink, similar to the existing "Create 3x3 Matrix" block. The user seeks a method to construct a 4x4 matrix for matrix multiplication involving dynamic inputs (phi and tita). The solution involves using the "look under mask" feature of the "Create 3x3 Matrix" block to modify dimensions, although the user encounters a locked mask preventing changes. The user requests access to a library or method for creating a 4x4 matrix block.

PREREQUISITES
  • Familiarity with Simulink interface and block functionalities
  • Understanding of matrix operations and dimensions
  • Knowledge of dynamic input variables in Simulink
  • Experience with modifying block parameters and masks in Simulink
NEXT STEPS
  • Research how to unlock masked blocks in Simulink
  • Explore creating custom blocks in Simulink for specific matrix dimensions
  • Learn about matrix multiplication in Simulink with dynamic inputs
  • Investigate existing libraries or toolboxes for matrix operations in Simulink
USEFUL FOR

Simulink users, engineers working on control systems, and developers needing to implement matrix operations with dynamic inputs in their models.

vatansever44
Messages
2
Reaction score
0
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 couldn't see that block, so i thought; "am i searching wrong thing?", only you can tell me that:smile:

For example; what for i need that block:

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?


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.
Here it:
http://www.mathworks.com/help/toolbox/aeroblks/create3x3matrix.html"


Thank you for interest and help!

Best regards.
 
Last edited by a moderator:
Physics news on Phys.org
By the way, i have learned the solution.

when we choose(right clicked) the "create 3x3 matrix" there is "look under mask" in that shell.

you can change it to what dimension you wanted.
 
i want the 3x3 to change to 2x6 but i cannot do it because the "look under mask" is locked so i cannot modify it and i don't know how to unlock it
 

Similar threads

  • · Replies 13 ·
Replies
13
Views
3K
  • · Replies 4 ·
Replies
4
Views
1K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 15 ·
Replies
15
Views
13K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 5 ·
Replies
5
Views
6K