How to get roots of determinant (characteristic) equation?
25 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Amit Kumar
el 30 de Abr. de 2014
Comentada: Walter Roberson
el 4 de Oct. de 2021
Hello all, I am solving an eigenvalue problem and giving symbolic matrix as input. I want to find roots of characteristic equation, I mean, roots of determinant of matrix equated to zero. Here I give script:
clear all;
close all;
clc;
syms w
A=[-2000*w^2+280*1e3,-280*1e3;280*1e3,-2000*w^2+280*1e3];
fun = matlabFunction(det(A))
I want to find roots of fun(). This is a polynomial equation of 4th order, so I should have 4 roots. If I use fzero, it just gives a local solution to problem, but I want to have all roots. Can you suggest something? Ofcourse, I can write coefficients of det(A) manually and pass it to roots([...]). But I don't want to write manually. I am even trying to bypass symbolics, as for large matrix, symbolic variables are computationally very expensive. Any comments? Thanks in advance!
0 comentarios
Respuesta aceptada
Star Strider
el 30 de Abr. de 2014
Editada: Star Strider
el 30 de Abr. de 2014
DA = det(A)
W = solve(DA,w)
produces:
W =
(140 + 140*i)^(1/2)
(140 - 140*i)^(1/2)
-(140 + 140*i)^(1/2)
-(140 - 140*i)^(1/2)
4 comentarios
Más respuestas (1)
Pratik Baraiya
el 4 de Oct. de 2021
clear all;
close all;
clc;
syms w
A=[-2000*w^2+280*1e3,-280*1e3;280*1e3,-2000*w^2+280*1e3];
fun = matlabFunction(det(A))
1 comentario
Walter Roberson
el 4 de Oct. de 2021
What is your recommendation to proceed from fun to find the roots of fun ?
Ver también
Categorías
Más información sobre Symbolic Math Toolbox en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!