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

2 ビュー (過去 30 日間)
Adashia Harding
Adashia Harding 2015 年 11 月 19 日
回答済み: Tushar Athawale 2015 年 11 月 25 日
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

回答 (1 件)

Tushar Athawale
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.

Community Treasure Hunt

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

Start Hunting!

Translated by