Azzera filtri
Azzera filtri

Matrix Error when trying to do x = A\0

3 visualizzazioni (ultimi 30 giorni)
jake stan
jake stan il 1 Mar 2018
Commentato: jake stan il 2 Mar 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.

Risposta accettata

Steven Lord
Steven Lord il 1 Mar 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.

Più risposte (0)

Categorie

Scopri di più su Linear Algebra in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by