matlab中左除和右除的区别
(2012-03-18 19:59:22)
标签:
杂谈 |
分类: 技术 |
在matlab中有两种除法:/和\,那么它们有什么区别呢?看了几本书,上面没有说或者是没有说明白,其实很简单,我们可以从英文帮助中查到:
A\B is the matrix division of A into B, which is
roughly the
所以:A\B=inv(A)*B;
他们之间的关系为:
A/B = (B'\A')'.
看来还是英文帮助比较实用.
举例如下:
a =
>> b=pascal(3)
b =
>> a/b
ans =
>> a*inv(b)
ans =
>> a\b
ans =
>> inv(a)*b
ans =
>> a/b-(b'\a')'
ans =