?? fig4_27.m
字號:
% Chapter 4: Figure 4.27, p. 203%% Analysis of the open-loop speed control system.%Ra=1; Km=10; J=2; f=0.5; Kb=0.1;num1=[1]; den1=[J,f];num2=[Km*Kb/Ra]; den2=[1];[num,den]=feedback(num1,den1,num2,den2);%% Change sign of transfer function since % disturbance has negative sign in the block diagram%num=-num;printsys(num,den)%% Compute time response to a unit step disturbance %[yo,x,t]=step(num,den);plot(t,yo)title('Open-loop Disturbance Step Response')xlabel('time [sec]')ylabel('speed')grid%% Steady-state error -> last value of output yo %yo(length(t))
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -