MATLAB/Vectors
< MATLAB
Quick way to show vector algebra in Matlab with matrices:
EDU>> a = [ 1 2; 3 4 ]
a =
1 2 3 4
EDU>> b = [1;0]
b =
1 0
EDU>> a\b
ans =
-2.0000 1.5000
EDU>> quit
Quick way to show vector algebra in Matlab with matrices:
EDU>> a = [ 1 2; 3 4 ]
a =
1 2 3 4
EDU>> b = [1;0]
b =
1 0
EDU>> a\b
ans =
-2.0000 1.5000
EDU>> quit