Meaning of the symbol '' \ ''

464 views (last 30 days)
Waqas Syed
Waqas Syed on 28 Jul 2015
Edited: Bruno Luong on 1 Oct 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?

Accepted Answer

Lukas Bystricky
Lukas Bystricky on 28 Jul 2015
Edited: Lukas Bystricky on 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 Comments
Bruno Luong
Bruno Luong on 1 Oct 2021
@Kriti Salwan "What happens if we are applying backlash to a matrix which is not square ?"
x = A\b;
Otherwise it's a least square solution
x = argmin(norm(A*x-b))
or equivalently
x = pinv(A)*b

Sign in to comment.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!