Creating 4x4 Matrix Block in Simulink

AI Thread Summary
A user seeks to create a 4x4 matrix block in Simulink, similar to the existing "Create 3x3 Matrix" block, to facilitate matrix multiplication with a constant. They express frustration at not finding a suitable block and inquire about a library that could provide this functionality. The user has discovered that the "Create 3x3 Matrix" block can be modified by accessing the "look under mask" option, but they encounter a locked mask that prevents changes. They are looking for guidance on unlocking this mask to adjust the dimensions for their needs. The discussion highlights the need for customizable matrix blocks in Simulink for specific applications.
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
4
Views
1K
Replies
1
Views
2K
Replies
15
Views
13K
Replies
7
Views
3K
Back
Top