Meaning of the symbol '' \ ''
248 ビュー (過去 30 日間)
古いコメントを表示
Hi,
I am trying to understand a pre written matlab code. There is a line: dx = -(J \ F);
What does the forward slash mean? Does it mean F divided by J or something?
0 件のコメント
採用された回答
Lukas Bystricky
2015 年 7 月 28 日
編集済み: Lukas Bystricky
2015 年 7 月 28 日
That's actually a backward slash. J\F is equivalent to solving the system J dx = F for dx, where J is a matrix (probably a Jacobian) and F and dx are vectors.
16 件のコメント
Bruno Luong
2021 年 10 月 1 日
Not true
J=rand(3); J=J+J',
F=rand(3); F=F+F',
J\F
F/J
Bruno Luong
2021 年 10 月 1 日
編集済み: Bruno Luong
2021 年 10 月 1 日
x = A\b;
For A with rank(A) < size(A,2) see https://blogs.mathworks.com/cleve/2021/04/28/solving-commodious-linear-systems/
Otherwise it's a least square solution
x = argmin(norm(A*x-b))
or equivalently
x = pinv(A)*b
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Linear Algebra についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!