MATLAB: Division of two vectors

vectorsvectors division

What is the result of A/B ???? (if A and B are same 3×1 row vectors) Example:
A=[-1;1;7]
B=[5;7;-2]
A/B
in Matlab gives: ans =
0 -0.1429 0
0 0.1429 0
0 1.0000 0

Best Answer

C = A / B determines the matrix C such that:
C * B = A
Try it:
A = [-1;1;7];
B = [5;7;-2];
C = A / B;
C * B
>> [-1; 1; 7]
Related Question