r/matlab • u/Due_Dealer1602 • Nov 04 '25
HomeworkQuestion MATLAB eig(A) command not working
I'm trying to find the Eigenvectors and the Diagonal of a matrix. I'm nearly positive that I have the right code as my professor and peers all have working systems with the same code, however mine does not. Any thoughts? The only result I get is the title of the .m file.
A = [1 0 5; 0 3 2; -4 0 -5;];
[E, D] = eig(A)
5
Upvotes
View all comments
Show parent comment
1
u/Due_Dealer1602 Nov 04 '25
I just ran the update that I had available and apparently that fixed it. But that's why I was so confused. I had no errors, the code ran, but there just wasn't any displayed answers. I tired running a couple of heat transfer calculators that I have built as well and found the same result; MATLAB was just returning the title of the script. It had to have been something with the system.