首页 文章

为什么Simulink从非零值开始?

提问于
浏览
2

我正在为控制系统做一些模拟 . 我注意到开始时间不为零,即使在模拟参数中,开始时间也设置为零 . 例如,在下图中,

enter image description here

enter image description here

信号的输出是

enter image description here

使用以下设置

enter image description here

我导入了数据,起始值是

a =
    1.0010    1.0010
    1.0020    1.0020
    1.0030    1.0030
    1.0040    1.0040

如何重置开始时间,以便模拟应该从零开始而不是一个?

2 回答

  • 4

    这个答案适用于 Matlab R2015a and below . 对于较新版本,请参阅answer of NKN .


    Simulink欺骗你!答案很简单:

    您的输出以及模拟时间实际上是 starts from 0 !只是范围没有 .

    原因是默认范围属性"Limit data points to last 5000 ",它始终检查新范围(最新的Matlab版本除外) . 所以取消选中那个盒子,一切都会好的 .

    enter image description here

  • 4

    请务必检查以下设置:

    enter image description here

    @thewaywewalk提到的勾选将检查以前的版本(低于 R2015 . 默认情况下,在 R2016 中未选中 .

    enter image description here

相关问题