Numerical solution of equality
Mostrar comentarios más antiguos
Hello! Anyone can help me figure out how to solve (numerically, not graphically) for t in the following equation:
sin(wn*t)=(w/wn)*sin(w*t)
Thanks.
Respuestas (1)
John D'Errico
el 22 de Nov. de 2017
The solution is trivial.
t == 0
Assuming that you want a non-trivial solution, are w and wn known? If not, then no numerical solution exists.
If w and wn have known numerical values, then use fzero. Just subtract the two, and solve the problem
sin(wn*t) - (w/wn)*sin(w*t)==0
That will require starting values for t, since there may well be multiple solutions. Or you can use the symbolic toolbox. But only if w and wn are known.
2 comentarios
Michelle Guzman
el 23 de Nov. de 2017
Walter Roberson
el 24 de Nov. de 2017
fsolve accepts a range as a starting point, and you can use realmin as the lower bound of the range to avoid 0.
Categorías
Más información sobre Numeric Solvers en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!