HOW TO INTEGRATE THE SLIDING PART OF SLIDING MODE CONTROL SYSTEM
5 次查看(过去 30 天)
显示 更早的评论
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.
9 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Function Creation 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!