
using simulink command to do this matrix 3(AT)2+5e [T in upper case]
    2 views (last 30 days)
  
       Show older comments
    
Im learning matlab but dont know exact commnad pls help
2 Comments
Answers (1)
  Jayanti
 on 16 Dec 2024
        
      Edited: Jayanti
 on 16 Dec 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 Comments
See Also
Categories
				Find more on General Applications in Help Center and File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


