I need to get the result for a unit step input at 0 s and a unit negative step disturbance at 25 s. But I am not understanding how to give the input
1 view (last 30 days)
Show older comments
This is my code. I am not understanding how to give the step input at t=0 and the unit negative step disturbance at 25s.
s = tf('s');
Gc = 0.96*(1.+0.34*s);
Gc.InputName = 'e';
Gc.OutputName = 'u';
Gmleft1 = 1/s;
Gmleft1.Inputname = 'u';
Gmleft1.OutputName = 'a';
Gmleft2 = exp(-s);
Gmleft2.Inputname = 'a';
Gmleft2.OutputName = 'b';
Gmright1 = 1/s;
Gmright1.Inputname = 'f';
Gmright1.OutputName = 'g';
Gmright2 = exp(-s);
Gmright2.Inputname = 'g';
Gmright2.OutputName = 'y';
Gd = 0.96*(1.+0.34*s);
Gd.InputName = 'y1';
Gd.OutputName = 'y2';
d = 0;
S1 = sumblk('r1 = r - y1');
S2 = sumblk('e = r1 - a');
S3 = sumblk('c = u - y2');
S4 = sumblk('f = d + c');
S5 = sumblk('y1 = y - b');
T = connect(Gc,Gmleft1,Gmleft2,Gmright1,Gmright2,S1,S2,S3,S4,S5,{'r'},'y');
0 Comments
Answers (1)
Priyanshu Mishra
on 28 Jul 2020
Hi Manideep
For unitstep input , you may refer the following documentation:
0 Comments
See Also
Categories
Find more on Software Development Tools 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!