早教吧作业答案频道 -->其他-->
(解RICATTI方程)D=0.1;H=3.2;Ch=0.3;Kw=1;Kp=0.05;Tt=0.3;W1=1;W2=1;g=1/0.2;A=[-D/H,1/H;-Ch*Kw/Tt,-1/Tt];B1=[-1/H;-Ch*Kp/Tt];B2=[0;-Ch/Tt];B=[B1,B2];C=[W1,0;0,W2];m1=size(B1,2);m2=size(B2,2);R=[-g^2*eye(m1)zeros(m1,m2);zeros(m2,m1
题目详情
(解RICATTI方程)
D=0.1;H=3.2;Ch=0.3;Kw=1;Kp=0.05;Tt=0.3;W1=1;W2=1;g=1/0.2;
A=[-D/H,1/H;-Ch*Kw/Tt,-1/Tt];
B1=[-1/H;-Ch*Kp/Tt];
B2=[0;-Ch/Tt];
B =[B1,B2];
C=[W1,0;0,W2];
m1=size(B1,2);
m2=size(B2,2);
R =[-g^2*eye(m1) zeros(m1,m2);zeros(m2,m1) eye(m2)];
X=care(A,B,C'*C,R)
运行错误提示:
Attempt to execute SCRIPT care as a function.
Error in ==> care at 16
X=care(A,B,C'*C,R)
D=0.1;H=3.2;Ch=0.3;Kw=1;Kp=0.05;Tt=0.3;W1=1;W2=1;g=1/0.2;
A=[-D/H,1/H;-Ch*Kw/Tt,-1/Tt];
B1=[-1/H;-Ch*Kp/Tt];
B2=[0;-Ch/Tt];
B =[B1,B2];
C=[W1,0;0,W2];
m1=size(B1,2);
m2=size(B2,2);
R =[-g^2*eye(m1) zeros(m1,m2);zeros(m2,m1) eye(m2)];
X=care(A,B,C'*C,R)
运行错误提示:
Attempt to execute SCRIPT care as a function.
Error in ==> care at 16
X=care(A,B,C'*C,R)
▼优质解答
答案和解析
用我的代码试试,应该是好的:
clear all;clc;
D=0.1;
H=3.2;
Ch=0.3;
Kw=1;
Kp=0.05;
Tt=0.3;
W1=1;
W2=1;
g=1/0.2;
A=[-D/H,1/H;-Ch*Kw/Tt,-1/Tt];
B1=[-1/H;-Ch*Kp/Tt];
B2=[0;-Ch/Tt];
B =[B1,B2];
C=[W1,0;0,W2];
m1=size(B1,2);
m2=size(B2,2);
R=[-g^2*eye(m1),zeros(m1,m2);zeros(m2,m1),eye(m2)];
X=care(A,B,C'*C,R)
X =
4.4269 0.3423
0.3423 0.1774
clear all;clc;
D=0.1;
H=3.2;
Ch=0.3;
Kw=1;
Kp=0.05;
Tt=0.3;
W1=1;
W2=1;
g=1/0.2;
A=[-D/H,1/H;-Ch*Kw/Tt,-1/Tt];
B1=[-1/H;-Ch*Kp/Tt];
B2=[0;-Ch/Tt];
B =[B1,B2];
C=[W1,0;0,W2];
m1=size(B1,2);
m2=size(B2,2);
R=[-g^2*eye(m1),zeros(m1,m2);zeros(m2,m1),eye(m2)];
X=care(A,B,C'*C,R)
X =
4.4269 0.3423
0.3423 0.1774
看了(解RICATTI方程)D=0...的网友还看了以下:
(1)f(x)=1-(x-a)(x-b),且m,n是f(x)=0时的两根,请问m,n,a,b的大小 2020-05-13 …
2个物体的动能和重力势能2个物体的质量分别是m1和m2,从同一位置抛出时动能相同,在下述情况下,它 2020-05-17 …
三元二次方程的C++解法d1*x+d2*y+d3*z=q,x^2-m1^2=y^2-m2^2=z^ 2020-06-12 …
一道三次二项式m1、m2是一元二次方程M^2-M-9=0的实数根,求m1^3+7m2^2+3m2- 2020-06-23 …
已知:m1/2-m-1/2=4,求下列各式的值:(1)m+m-1(2)m3/2-m-3/2/m1/ 2020-07-13 …
已知m>0,且m1/2+m(-1/2)=4,求[m3/2-m(-3/2)]/m1/2-m(-1/2 2020-07-13 …
已知M1,M2是抛体运动轨迹上的两点,K为轨迹长度,求抛物线方程已知M1(x1,y1,z1),M2 2020-07-20 …
在rt三角形abc中,角c=90度,斜边c=5两条直角边a.b的长是方程x^2-mx+2m-2=0 2020-07-30 …
已知方程(512x^2+m1x+1)(512x^2+m2x+1).(512x^2+m5x+1)=0 2020-07-30 …
1.已知圆(X+4)2+Y2=25的圆心为M1,圆(X-4)2+Y2=1的圆心为M2,动圆与这两圆 2020-08-03 …