
using simulink command to do this matrix 3(AT)2+5e [T in upper case]
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Im learning matlab but dont know exact commnad pls help
2 comentarios
Respuestas (1)
Jayanti
el 16 de Dic. de 2024
Editada: Jayanti
el 16 de Dic. de 2024
Hi Sumiyadorj,
I understand that you want to perform the matrix operations using Simulink. Here are some assumptions I made on the equation you provided-
- “A” and “e” are matrices
- “T” represents the transpose of a matrix
You can generate a matrix using “constant” block.
"Simulink library browser"-> "Sources"-> "constant"
Double click the constant block to open block parameters dialog. Enter the matrix values in the "Constant value" field (e.g. A= [1,2,3;4,5,6;7,8,9]). Now to generate transpose of this matrix navigate to
"Math Operations library"-> "Math Function"
Double click to open its parameters dialog and in drop-down menu, select "transpose".
Now to multiply the matrix navigate to
"Math Operations library"-> "Matrix Multiply"
To multiply a constant value, such as 3, with the output of a matrix multiplication, you can use the"Gain"block.
"Math Operations library"-> "Gain"
Double click and set the gain parameter to 3. The output of the "Gain" block will be the result of multiplying the matrix multiplication output by the constant 3.
Similarly, you can create other part of equation “5e”. Now you can add two using “sum” block inside "Math Operations library”. Please refer to the following image for better understanding.

Hope this is useful!
0 comentarios
Ver también
Categorías
Más información sobre General Applications en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
