I am writing a script for generating the vectors and Hilbert matrix of order n,in which the vector x0 should change its size according to the size of the matrix. But there's an error message saying 'operator *: nonconformant arguments (op1 is 2x2, op2 is 12x1)' May I know why the size of matrix could not be changed successfully, while my vector works well?
for k=2:12
H = hilb(k);
x0(1:k)=1;
b = H * x0'; %generate the n-vector b=Hx0
x_approx = GE(H,b);
end