a unit step disturbance
Show older comments
Hi All,
I need to Simulate a controllers with a unit step change in set-point followed by a unit step
disturbance at a time of 40 seconds.
My question is, what ways are there of going about implementing the unit step disturbance?
Some guidance with this would be appreciated.
Some of the code is below
K = 2;
tau = 3;
den = [tau 1];
sysmod = tf(K,den,'inputdelay',1)
plot (time,response,'g');
hold on
step (sysmod,'k')
hold off
Hagglund-Astrom
Kc = 0.175;
tauI = 2;
theta = 0; %Defines the dead time in the process
haggast1 = feedback((tf(Kc*exp(-theta*s)/s)*sysmod),0.5);
step (haggast1,'g')
hold on
step (sysmod,'k')
legend ('haggast1','sysmod')
hold off
Thanks
Toby
1 Comment
Toby Russell
on 23 Aug 2020
Answers (0)
Categories
Find more on Legend 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!