%part a
A = [1 0 -1; 2 1 -1; 3 2 -1];
a = inv(A)

%part b
u = [1 2 3];            %row vector

%part c
v = [1; 2; 3];          %column vector

%part d
%x = A*u;                %does not work
y = A*v;                %does work column*column

%part e
X = A.*u

%part f
B = ones(10);
w = [1; 2; 3; 4; 5; 6; 7; 8; 9; 10];
B.*w