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
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
Michelle Guzman el 23 de Nov. de 2017
Hello!
Yes, wn and w are known a priori, and t is limited within a range. I did tried using fsolve and it works good enough, except that the limit needs to be specified close enough (but not equal) to zero as the starting point, otherwise the first zero that the solver finds is zero.
Do you know if there is a way to make the solver output the first 2 or 3 zeros/poles?
Walter Roberson
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.

Iniciar sesión para comentar.

Preguntada:

el 22 de Nov. de 2017

Comentada:

el 24 de Nov. de 2017

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by