Filter löschen
Filter löschen

Matrix Error when trying to do x = A\0

3 Ansichten (letzte 30 Tage)
jake stan
jake stan am 1 Mär. 2018
Kommentiert: jake stan am 2 Mär. 2018
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.

Akzeptierte Antwort

Steven Lord
Steven Lord am 1 Mär. 2018
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.

Weitere Antworten (0)

Kategorien

Mehr zu Linear Algebra finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by