【问题标题】:Discrete time system MATLAB离散时间系统 MATLAB
【发布时间】:2020-02-11 21:39:16
【问题描述】:

如何在 2013 年初始化 x?我需要 x0= 0.9914 作为初始条件 这是我的例子:

A=[1]
B=[0.12]
C=[1]
D=[0]

u=[12.9 13 13.01 13.02 13.019 13.03 13.03]

sistema=ss(A,B,C,D,-1)
t=[2013 2014 2015 2016 2017 2018 2019];    
y=lsim(sistema,u,t);
plot(t,y)

【问题讨论】:

    标签: matlab plot discrete-mathematics


    【解决方案1】:

    好像你忘了创建初始条件变量。

    x0 = 0.9914;
    

    然后您需要做的就是将它添加到lsim 函数中。

    y=lsim(sistema, u, t, x0);
    

    【讨论】:

    • 不鼓励仅使用代码的答案。请解释您的答案为何以及如何解决问题。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多