To calculate f = d * et
, we first need to calculate the eigenvectors and eigenvalues of matrix a
.
main.m209 chars8 lines
Alternatively, we can compute f
directly using the eig
function in Matlab:
main.m50 chars3 lines
Note that f
will contain the eigenvectors of a
, and d
will contain the eigenvalues.
gistlibby LogSnag