You are on page 1of 1

2/13/16 7:53 PM

MATLAB Command Window

1 of 1

>> f=[1 1 1 1; 2 -1 0 1; 3 1 -1 -1; 1 -2 -3 1];


>> g=[4; 2; 2; -3];
>> h=(g'/f')'
h =
1.0000
1.0000
1.0000
1.0000
>> a=[2 1 -4 6 3 -2; -1 2 3 5 -2 0; 1 -2 -5 3 2 1; 4 3 -2 0 1; 3 1 -1 4 3 6; 5 2 -2 3 1
1];
??? Error using ==> vertcat
CAT arguments dimensions are
not consistent.
>> a=[2 1 -4 6 3 -2; -1 2 3 5 -2 0; 1 -2 -5 3 2 1; 4 3 -2 2 0 1; 3 1 -1 4 3 6; 5 2 -2
3 1 1];
>> b=[16; -7; 1; -1; -11; 5]
b =
16
-7
1
-1
-11
5
>> x= (b'/a')'
x =
2.0000
-1.0000
1.0000
0.0000
3.0000
-4.0000
>>

You might also like