One of the systems I want to control with PID is the state space equation with disturbances. Can someone help me to design matlab function of the system? Please
15 views (last 30 days)
Show older comments
I have given the space state parameters I want to use below. Can you help design and control this matlab function with PID?
3 Comments
Accepted Answer
Sam Chak
on 9 Aug 2023
I have fixed the code in the MATLAB Function block. The initial condition is assigned in the Integrator block. It should be working correctly now.
function dx = fcn(w, u, x)
A = [-4.46566e-3 4.45684e-3;
5.15227e-3 -5.15227e-3];
B = [ 3.16315e-3;
0];
E = [ 2.92761e-3 0;
0 -2.03150e-8];
dx = A*x + B*u + E*w;
5 Comments
Sam Chak
on 10 Aug 2023
I have examined the .slx file and identified some issues with the design methodology. However, I'm not familiar with handling mismatched disturbances. Moreover, no stability proof is provided to demonstrate that the proposed sliding mode controller can effectively track the reference input. If the existing PI controller can solve the tracking problem, perhaps you can apply some modifications to it.
Currently, I don't have a solution for the control design. Therefore, I recommend that you post a new question, and hopefully, experts in the field can offer guidance.
More Answers (0)
See Also
Categories
Find more on PID Controller Tuning 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!