MATLAB: Matrix Error when trying to do x = A\0

linear algebra

I get this error:
Warning: Matrix is close to singular or badly scaled. Results may be inaccurate. RCOND = 6.864902e-17.
I had a 3×3 matrix then calculated the eigen matrix by finding the eigenvalues then subbing it back in to the matrix.
I proceeded to try to solve the equation Ax = 0, where A is the eigenmatrix, and I need to find the eigenvectors.
I tried x = A\[0;0;0], but the error prompted, and I get x = 0, 0,0 which is wrong since I did [v, d] = eig(original_matrix) to check the values.

Best Answer

The vector x = [0; 0; 0] is one solution to the system A*x = [0; 0; 0] for a 3-by-3 matrix A. It may not be the only solution to that system. In this case, the backslash operator is not the right tool for the job.
Assuming you're not allowed to use the eig function to compute the answer directly (because this is homework?) take a look at what the null function gives you. But if this is homework, good thought to use the eig function to check your work.