Borrar filtros
Borrar filtros

Matrix Error when trying to do x = A\0

3 visualizaciones (últimos 30 días)
jake stan
jake stan el 1 de Mzo. de 2018
Comentada: jake stan el 2 de Mzo. de 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.

Respuesta aceptada

Steven Lord
Steven Lord el 1 de Mzo. de 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.

Más respuestas (0)

Categorías

Más información sobre Linear Algebra en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by