📄 p3_23.dir
字号:
% Diary file (edited) of interactive solution of Problem 3_23
%
>> % Problem 3_23
>> x1=[3 0 2 2];
>> x2=[-6 42 24 54];
>> x3=[21 -21 0 -15];
>> Arank=[x1;x2;x3]
Arank =
3 0 2 2
-6 42 24 54
21 -21 0 -15
> rank(Arank)
ans =
2
> rref(Arank)
ans =
1.0000 0 0.6667 0.6667
0 1.0000 0.6667 1.3810
0 0 0 0
>>% Thus third row is dependent
>>% Solve system of equations to find relationship
>>%
>>% Solve a*X1 + b*X2 = X3
>>Acoef=[x1' x2']
Acoef =
3 -6
0 42
2 24
2 54
>>x3
x3 =
21 -21 0 -15
>>Coef=Acoef\x3'
Coef =
6.0000
-0.5000
%---------------------------
% Edit this this diary file to create an M-file to solve
% the problem
%
%
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -