![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1415139/image.png)
Solving for state transition matrix x dot = Ax + Bu
30 views (last 30 days)
Show older comments
Looking to solve this equation in Matlab
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1371329/image.jpeg)
0 Comments
Answers (1)
Shaik mohammed ghouse basha
on 20 Jun 2023
I understand that you matrix equation to be solved to get LHS provided you have the variables
.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1415139/image.png)
Here is a code which can be used to solve:
x_1 = 2;
x_2 = 3; %you can change these variables of LHS accordingly
x_3 = 4;
u = 5;
x = [x_1; x_2; x_3]; %generate a column matrix
A = [-42.3729 0 0; 0 0 1; -0.7670 -0.0012 0]; % generate the 3 X 3 matrix as given in equation
B = [1.6949; 0; 0]; %generate the 3 X 1 matrix as given in equation
X = A * x + B * u %X matrix is the x dot matrix of the equation
0 Comments
See Also
Categories
Find more on Matrices and Arrays 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!