Question
Eigenvectors and Eivenvalues
- 4 replies
- 3771 views
- Translate All
Hello,
I'm writing a program and in it I need to calculate the eigenvectors and eigenvalues so that I can determine my mode shapes, but I cannot seem to get the script to cooperate with me. I've determined the eigenvalues, but when I try to get the eigenvectors by using a loop, I get the error message that my eigenvalue (l) isn't a scalar. I think the error lies in formatting somewhere, but I can't seem to find it. If someone could please take a look at the script I've attached it would be greatly appreciated. Also, is there a way that I can assign my eigenvalues and sort them at the same time so that I can skip the step with l1?
Thank you

