Professional Documents
Culture Documents
>>
>> m=2;
>> b=10;
>> k=25;
>> H=tf(1,[m b k])
H =
1
-----------------
2 s^2 + 10 s + 25
>> step(H)
Warning: MATLAB has disabled some advanced graphics rendering features by switching
to software OpenGL. For more
information, click here.
>> %-------control
>> figure(1)
>> rlocus(H)
>> kp=269; % proporcional
>> HLC1=feedback(kp*H,1)
HLC1 =
269
------------------
2 s^2 + 10 s + 294
>> figure(2)
>> step(H,HLC1)
>> %-------------control
figure(1)
rlocus(H)
kp=269; %proporcional
HLC1=feedback(kp*H,1)
HLC1 =
269
------------------
2 s^2 + 10 s + 294
>> 200
ans =
200
>> kp=200;
>> HLC1=feedback(kp*H,1)
HLC1 =
200
------------------
2 s^2 + 10 s + 225
>> figure(2)
>> step(H,HLC1)
>>
>> kd=20; % deriv
>> HLC2=feedback(tf([kd kp],1)*H,1)
HLC2 =
20 s + 200
------------------
2 s^2 + 30 s + 225
>> figure(2)
>> step(H,HLC1,HLC2)
>> kd=10;
>>
>> ki=400;
>> GPID=tf([kd kp ki],[1 0];
GPID=tf([kd kp ki],[1 0];
|
Error: Unbalanced or unexpected parenthesis or bracket.
HLC3 =
>> figure(3)
>> step(HLC2,HLC3)
>>