matlab - 如何在 matlab 中绘制 PD 补偿器的输出?
问题描述
我在控制回路中有一个简单的 PD 补偿器。我想查看补偿器输出阶跃响应。我的代码如下所示:
plant = tf(820,[0.08 1 0])
% PD Compensator
Kp = 2.25;
Ki = 0;
Kd = 0.025;
comp_pd = pid(Kp, Ki, Kd)
% plant with pd compensator
plant_pd = feedback(comp_pd*plant,1);
% pd compensator output
pd_output=feedback(comp_pd,plant);
figure();
step(plant_pd)
step(pd_output)
grid on;
ylim([-12 12]);
xlim([0 0.1]);
当我运行代码时,我收到此错误:
Error using DynamicSystem/step (line 95)
Cannot simulate the time response of models with more zeros than poles.
如何绘制补偿器输出?
解决方案
推荐阅读
- mongodb - 如何在过滤器表达式中创建带有 $in 的部分索引?
- javascript - 如何使用全局函数 VUE 2 CLI?
- mysql - 如何处理如果有更新会产生影响的关系变化
- python - 我需要客户端写入服务器端
- gcc - 自动为链接器选择正确的多库版本
- java - Java 中 for 循环/else-if 语句的协助
- reactjs - 我在 React 应用程序中的 Axios POST 请求不起作用
- c++ - 语法错误:在标识符 'a' 之前缺少 ')'
- azure-ad-b2c - 将 ASAuthorizationAppleIDProvider 与 Azure B2C 一起使用 - 可以吗?
- javascript - React 路由器自动重定向到 /