HOW TO INTEGRATE THE SLIDING PART OF SLIDING MODE CONTROL SYSTEM
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hi, i am currently working on sliding mode control for two tank systems. I have a problem to on the integral part. I need to integrate (x-5)dt from 0 to t, where t is the sampling time. The coding that I use is as belows:
x1d=x(2);
x1_des=5;
x1_des_d=0;
C = 0.45;
e1=x(1)-x1_des;
e1d=x(2)-x1_des_d;
syms t;
s=x1d+(2*C*e1)+((C^2)*int(e1,t,0,t));
I am using s-function for the coding to be run by the simulink where I think I do not need the loop to integrate the equations. Can someone help me and give me advice to solve this problems? Your help is very appreciated.
Thank you.
Respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!