Numerical solution of equality
显示 更早的评论
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.
回答(1 个)
John D'Errico
2017-11-22
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 个评论
Michelle Guzman
2017-11-23
Walter Roberson
2017-11-24
fsolve accepts a range as a starting point, and you can use realmin as the lower bound of the range to avoid 0.
类别
在 帮助中心 和 File Exchange 中查找有关 Numeric Solvers 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!