How to get symbolic eigen values for 5x5 symbolic matrix
Show older comments
Hi all,
I want to get the eigen values of 5x5 symbolic matrix. I am using the code
clc;
clear all;
syms r c co l1 l2 vd e kp ki
syms s m h ce cep %a5 a4 a3 a2 a1 a0
%syms g r c co l1 l2 vd e s m h ce cep ...
%syms kp s m h
m(1,1)= 0;
m(1,2)= 0;
m(1,3)= vpa(-2*e/(l1*(vd+e)));
m(1,4)= vpa(-kp*(vd+e)/(2*l1));
m(1,5)= vpa(-(vd+e)/(2*l1));
m(2,1)= 0;
m(2,2)= 0;
m(2,3)= vpa(2*vd/(l2*(vd+e)));
m(2,4)= vpa(-(kp*(vd+e)+2)/(2*l2));
m(2,5)= vpa(-(vd+e)/(2*l2));
m(3,1)= vpa(e/(c*(vd+e)));
m(3,2)= vpa(-vd/(c*(vd+e)));
m(3,3)=0;
m(3,4)= ( kp*vd*(vd+e)/(2*c*r*e) );
m(3,5)= vpa( vd*(vd+e) / (2*r*c*e));
m(4,1)= 0;
m(4,2)= vpa(1/co);
m(4,3)= 0;
m(4,4)= vpa(-1/(r*co));
m(4,5)= 0;
m(5,1)= 0;
m(5,2)= 0;
m(5,3)= 0;
m(5,4)= vpa(ki);
m(5,5)= 0;
eig(m)
- and getting the answers as
Rootsof(...Some big expression...) Can anyone please suggest me,how can I get exact eigen values
Answers (0)
Categories
Find more on Conversion Between Symbolic and Numeric in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!