MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   MATLAB论坛 (https://www.labfans.com/bbs/forumdisplay.php?f=6)
-   -   [MATLAB数学相关] 求行变换矩阵 (https://www.labfans.com/bbs/showthread.php?t=13259)

sxgyjq 2011-04-27 10:55

求行变换矩阵
 
已知两个列向量
a=[1,2,3,4]', b=[4,3,2,1]'
求行变换矩阵P,使得
P*a=b

请问matlab中那个命令(命令组合)具有这个功能?非常感谢!

libralibra 2011-04-27 17:16

回复: 求行变换矩阵
 
直接计算
[code]>> a=[1,2,3,4]', b=[4,3,2,1]'
a =
1
2
3
4
b =
4
3
2
1
>> p = b/a
p =
0 0 0 1.0000
0 0 0 0.7500
0 0 0 0.5000
0 0 0 0.2500
>> p*a
ans =
4
3
2
1 [/code]

sxgyjq 2011-05-02 21:15

回复: 求行变换矩阵
 
非常感谢!非常感谢!


所有时间均为北京时间。现在的时间是 11:19

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.