Numerical solution of equality
Show older comments
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.
Answers (1)
John D'Errico
on 22 Nov 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 Comments
Michelle Guzman
on 23 Nov 2017
Walter Roberson
on 24 Nov 2017
fsolve accepts a range as a starting point, and you can use realmin as the lower bound of the range to avoid 0.
Categories
Find more on Numeric Solvers 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!