Settling time is not displaying on the step response graph.

huangapple go评论59阅读模式
英文:

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.

huangapple
  • 本文由 发表于 2023年3月31日 02:04:36
  • 转载请务必保留本文链接:https://go.coder-hub.com/75891556.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定