
using simulink command to do this matrix 3(AT)2+5e [T in upper case]
1 回表示 (過去 30 日間)
古いコメントを表示
Im learning matlab but dont know exact commnad pls help
2 件のコメント
回答 (1 件)
Jayanti
2024 年 12 月 16 日
編集済み: Jayanti
2024 年 12 月 16 日
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 件のコメント
参考
カテゴリ
Help Center および File Exchange で General Applications についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
