Meaning of the symbol '' \ ''
267 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Waqas Syed
am 28 Jul. 2015
Bearbeitet: Bruno Luong
am 1 Okt. 2021
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 Kommentare
Akzeptierte Antwort
Lukas Bystricky
am 28 Jul. 2015
Bearbeitet: Lukas Bystricky
am 28 Jul. 2015
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 Kommentare
Bruno Luong
am 1 Okt. 2021
Not true
J=rand(3); J=J+J',
F=rand(3); F=F+F',
J\F
F/J
Bruno Luong
am 1 Okt. 2021
Bearbeitet: Bruno Luong
am 1 Okt. 2021
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
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Linear Algebra finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!