求大神解答matlab矩阵问题我想求一个矩阵微分方程clc;clear;syms x1(t) x2(t) x;x=[x1;x2];c=[1 0;0 1];p1=1;p2=1;p=[p1;p2];dsolve(c*diff(x)==p,x1(0)==0,x2(0)==0)运行之后报错:CAT arguments dimensions are not consistent.我想问

来源:学生作业帮助网 编辑:六六作业网 时间:2024/05/04 15:14:26
求大神解答matlab矩阵问题我想求一个矩阵微分方程clc;clear;symsx1(t)x2(t)x;x=[x1;x2];c=[10;01];p1=1;p2=1;p=[p1;p2];dsolve(c

求大神解答matlab矩阵问题我想求一个矩阵微分方程clc;clear;syms x1(t) x2(t) x;x=[x1;x2];c=[1 0;0 1];p1=1;p2=1;p=[p1;p2];dsolve(c*diff(x)==p,x1(0)==0,x2(0)==0)运行之后报错:CAT arguments dimensions are not consistent.我想问
求大神解答matlab矩阵问题
我想求一个矩阵微分方程
clc;clear;
syms x1(t) x2(t) x;
x=[x1;x2];
c=[1 0;0 1];
p1=1;
p2=1;
p=[p1;p2];
dsolve(c*diff(x)==p,x1(0)==0,x2(0)==0)
运行之后报错:CAT arguments dimensions are not consistent.
我想问一下这是为什么?怎么解决?
(我不想用两个方程来解决,只想用一个矩阵方程)

求大神解答matlab矩阵问题我想求一个矩阵微分方程clc;clear;syms x1(t) x2(t) x;x=[x1;x2];c=[1 0;0 1];p1=1;p2=1;p=[p1;p2];dsolve(c*diff(x)==p,x1(0)==0,x2(0)==0)运行之后报错:CAT arguments dimensions are not consistent.我想问
clc;clear;
syms x1(t) x2(t) x;
x=[x1;x2];
c=[1,0;0,1];
p1=1;
p2=1;
p=[p1;p2];
S = dsolve(c*diff(x)==p,x(0)==[1;2]);
S.x1
S.x2