英文:
Settling time is not displaying on the step response graph
问题
以下是要翻译的代码部分:
我正在绘制封闭环系统的阶跃响应,并需要在图上显示调整时间以完成我的作业。以下是我的代码:
s = tf('s')
L = (20*(s+1))/(10*s*(s-1))
T = L/(1+L)
step(T)
通常情况下,我只需右键单击图表,然后在特性中选择调整时间选项即可显示。但它没有显示任何内容。我添加了这行:
stepinfo(T)
它给我正确的阶跃响应,并在图表的范围内。
有人知道如何修复,以便我可以右键单击并显示它吗?
英文:
I am graphing the step response of a closed loop system and I need to display the settling time on the graph for my assignment. Here is my code:
s = tf('s')
L = (20*(s+1))/(10*s*(s-1))
T = L/(1+L)
step(T)
Normally, I would just right click on the graph and in the characteristics hit the settling time option and it displays. It isn't displaying anything. I added this line:
stepinfo(T)
And it gives me the correct step response that is within the bounds of the graph.
Anyone know how to fix it so I can just right click and have it displayed?
答案1
得分: 1
系统不稳定,有一个极点在+1。根据此链接:如果系统不稳定,那么除了峰值和峰值时间为无穷大之外,所有阶跃响应特性都为NaN。奇怪的是,stepinfo(T)输出了一个安定时间,尽管不应该。
英文:
The system is unstable, there is a pole in +1.
>> isstable(T)
ans =
logical
0
>> pole(T)
ans =
0.0000 + 0.0000i
-0.5000 + 1.3229i
-0.5000 - 1.3229i
1.0000 + 0.0000i
so according to this :
> If sys is unstable, then all step-response characteristics are NaN, except for Peak and PeakTime, which are Inf.
It is weird that stepinfo(T) does output a setlling time though, as it shouldn't.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论