Face recognition using eigenvalues code...PLEASE HELP!!

2 visualizaciones (últimos 30 días)
Adashia Harding
Adashia Harding el 19 de Nov. de 2015
Respondida: Tushar Athawale el 25 de Nov. de 2015
I am creating a code that will implement face recognition using eigenvalues and eigenvectors. The code was copied from a textbook so I am not sure what I am doing wrong. This is the error that I get:
Error using * Inner matrix dimensions must agree.
Error in eigenfaces (line 43) proj_a=a*V

Respuestas (1)

Tushar Athawale
Tushar Athawale el 25 de Nov. de 2015
I understand that you are encountering an error when trying to execute a MATLAB script that involves eigenvalue and eigenvector computations.
In your example, the most likely reason for the error is that the number of columns of Matrix 'a' is not equal to the number of rows of matrix 'V'. Please make sure that the number of columns of 'a' is equal to the number of rows of 'V'. The MATLAB Newsgroup post in the following link provides a similar explanation:
You can check the size of matrices 'a' and 'V' using the MATLAB "size" function.

Community Treasure Hunt

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

Start Hunting!

Translated by