using simulink command to do this matrix 3(AT)2+5e [T in upper case]

1 回表示 (過去 30 日間)
Sumiyadorj
Sumiyadorj 2024 年 12 月 11 日
編集済み: Jayanti 2024 年 12 月 16 日
Im learning matlab but dont know exact commnad pls help
  2 件のコメント
Walter Roberson
Walter Roberson 2024 年 12 月 11 日
Is that
Are A and T both matrices ?
Walter Roberson
Walter Roberson 2024 年 12 月 15 日
Or is it

サインインしてコメントする。

回答 (1 件)

Jayanti
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-
  1. A and “e” are matrices
  2. 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!

カテゴリ

Help Center および File ExchangeGeneral Applications についてさらに検索

製品


リリース

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by