Meaning of the symbol '' \ ''
260 次查看(过去 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!