Matrix Error when trying to do x = A\0

3 次查看(过去 30 天)
I get this error:
Warning: Matrix is close to singular or badly scaled. Results may be inaccurate. RCOND = 6.864902e-17.
I had a 3x3 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.

采纳的回答

Steven Lord
Steven Lord 2018-3-1
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.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Linear Algebra 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by