Face recognition using eigenvalues code...PLEASE HELP!!
2 次查看(过去 30 天)
显示 更早的评论
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
0 个评论
回答(1 个)
Tushar Athawale
2015-11-25
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.
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!