形如dx/dt=Ax+Bu+Ew;y=Cx+Du;的状态空间表达式用matlab怎么求解啊?
来源:学生作业帮 编辑:作业帮 分类:综合作业 时间:2024/05/17 04:28:23
形如dx/dt=Ax+Bu+Ew;y=Cx+Du;的状态空间表达式用matlab怎么求解啊?
matlab中 ss(A,B,C,D)可以构造形如dx/dt=Ax+Bu;y=Cx+Du;的状态空间表达式,可是现在还有一个扰动Ew,该如何用matlab求解?
matlab中 ss(A,B,C,D)可以构造形如dx/dt=Ax+Bu;y=Cx+Du;的状态空间表达式,可是现在还有一个扰动Ew,该如何用matlab求解?
这个取决于你要做什么,你要做系统辨识么?还是仿真?
如果是仿真,用下面的例子
This example shows how to simulate a continuous-time state-space model using a random binary input u and a sampling interval of 0.1 s.
Consider the following state-space model:
dx/dt =[-1 1;-0.5 0]x + [1; 0.5]u + [0.5;0.5]e
y = [1,0]x+ e;
where e is Gaussian white noise with variance 7.
Use the following commands to simulate the model:
% Set up the model matrices
A = [-1 1;-0.5 0]; B = [1; 0.5];
C = [1 0]; D = 0; K = [0.5;0.5];
% Create a continuous-time state-space model
% Ts = 0 indicates continuous time
model_ss = idss(A,B,C,D,K,'Ts',0,'NoiseVariance',7)
% Create a random binary input
u = idinput(400,'rbs',[0 0.3]);
% Create an iddata object with empty output to represent just the input signal
data = iddata([],u);
data.ts = 0.1
% Simulate the output using the model
opt = simOptions('AddNoise',true);
y=sim(model_ss,data,opt);
再问: 是做仿真,还有优化,是连续系统的,能不能把完整的例子发一下啊? 42463126@qq.com
再答: 上面这个例子就很完整啊?有问题吗
再问: idss是建立离散系统的啊,那连续系统呢?
再答: idss既可以是连续,也可以是离散,取决于后面的Ts是不是0,我上面的例子,Ts就是0,所以已经是连续系统的了。
如果是仿真,用下面的例子
This example shows how to simulate a continuous-time state-space model using a random binary input u and a sampling interval of 0.1 s.
Consider the following state-space model:
dx/dt =[-1 1;-0.5 0]x + [1; 0.5]u + [0.5;0.5]e
y = [1,0]x+ e;
where e is Gaussian white noise with variance 7.
Use the following commands to simulate the model:
% Set up the model matrices
A = [-1 1;-0.5 0]; B = [1; 0.5];
C = [1 0]; D = 0; K = [0.5;0.5];
% Create a continuous-time state-space model
% Ts = 0 indicates continuous time
model_ss = idss(A,B,C,D,K,'Ts',0,'NoiseVariance',7)
% Create a random binary input
u = idinput(400,'rbs',[0 0.3]);
% Create an iddata object with empty output to represent just the input signal
data = iddata([],u);
data.ts = 0.1
% Simulate the output using the model
opt = simOptions('AddNoise',true);
y=sim(model_ss,data,opt);
再问: 是做仿真,还有优化,是连续系统的,能不能把完整的例子发一下啊? 42463126@qq.com
再答: 上面这个例子就很完整啊?有问题吗
再问: idss是建立离散系统的啊,那连续系统呢?
再答: idss既可以是连续,也可以是离散,取决于后面的Ts是不是0,我上面的例子,Ts就是0,所以已经是连续系统的了。
用matlab求解这个微分方程:dx/dt=36.86+x
用matlab解微分方程,题目是:ax''''''+bx''''+cx''+dx=0,其中x=esinωt,求解ω
求解微分方程dt/dx=x+y
如何用matlab求解dy/dt=1+y^2方程的解
微分方程d^2y/dt^2-dy/dt+y=1,y0=0,y1=0.怎么用matlab求解啊
(1)dx/dt=x;dy/dt=y; (2)dN/dt=r1N-r2N^1/2 用matlab软件分别画出他们的变化曲
怎么用拉普拉斯变换求解微分方程?题目:dx/dt=x-2y,dy/dt=5x-y;x(0)=-1,y(0)=2
Matlab 中 用simulink求解微分方程 du/dt=cos(sint),u(0)=1 求那个仿真图和结果啊.
MATLAB求解微分方程:du/dt=cos(sint),u(0)=1
微分方程求解:型如dx=y+z;dy=x-z;dz=dx+3dy的微分方程用matlab能求解吗?
方程式求表达式方程式ax^4+bx^3+cx^2+dx=0,请求出x的表达式,急上面方程不对!ax^4+bx^3+cx^
用Matlab编程求解 二阶微分方程:4*d^2y(t)/dt^2+y(t)=dx(t)/d(t)-0.5x(t)