Im going to program PCA, but for that, I have to calculate the Eigen Vector and Eigen Value.
My question is in calculate the eigen value we have to calculate the determinant of the matrix which all the (diagonal value - lamda).
In this case we can consider the number of lamda Depends on the matrix dimension.
I can program it manually for the matriks before the diagonal substracted by lamda.
But for the diagonal after substracted by lamda, how to calculate it??
Because, eventually we have to do factorisation to get the lamda (x1,x2,..,xn).
Here is the example :
Matriks =[ 3 5 6
5 7 4
3 8 9]
Then we have to substract the diagonal value with eigen value, in this case because we havent knoen it, we will consider it as x.
Matrix_New=[ 3-x 5 6
5 7-x 4
3 8 9-x]
And the determinant is (3-x)(7-x)(9-x).
I already tried to multiply it, but matlab gives error. Do u know how to do calculation (3-x)(7-x)(9-x) ??
I know there is matlab function, but Im not allowed to use it!!
I really appriciate any help :)