Meaning of the symbol '' \ ''
274 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Waqas Syed
el 28 de Jul. de 2015
Editada: Bruno Luong
el 1 de Oct. de 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 comentarios
Respuesta aceptada
Lukas Bystricky
el 28 de Jul. de 2015
Editada: Lukas Bystricky
el 28 de Jul. de 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 comentarios
Bruno Luong
el 1 de Oct. de 2021
Not true
J=rand(3); J=J+J',
F=rand(3); F=F+F',
J\F
F/J
Bruno Luong
el 1 de Oct. de 2021
Editada: Bruno Luong
el 1 de Oct. de 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
Más respuestas (0)
Ver también
Categorías
Más información sobre Symbolic Math Toolbox en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!