MATLAB 仿真分析二阶系统传递函数: Bode 图、Nyquist 图和阶跃响应
% 定义参数 R1 = 1; C1 = 1; R2 = 1; C2 = 1; T1 = 6; T2 = 6; K = 1;
% 构造传递函数 s = tf('s'); G = K / (R1C1R2C2s^2 + (R1C1+R2C2+R2*C1)*s + 1);
% 绘制Bode图 figure(1); bode(G);
% 绘制Nyquist图 figure(2); nyquist(G);
% 绘制阶跃反应曲线 figure(3); step(G);
% 分析时域性能指标 [y,t] = step(G); steady_state_value = y(end) overshoot = max(y) - steady_state_value peak_time = t(find(y==max(y))) delay_time = t(find(y>0.98steady_state_value, 1)) rise_time = t(find(y>0.9steady_state_value, 1)) - delay_time
原文地址: https://www.cveoy.top/t/topic/oHcD 著作权归作者所有。请勿转载和采集!