Im having a problem with finding the zeros of a sin function in a certain domain
10 次查看(过去 30 天)
显示 更早的评论
Here is my code
g=inline('sin(x)-(3x/2)')
Zero_g=fzero(g,[-pi,2*pi])
0 个评论
采纳的回答
Star Strider
2014-9-28
Small typo errors in ‘g’ (missing multiplication operator and missing input argument variable declaration). I replaced it with an anonymous function:
g = @(x) sin(x)-(3*x/2);
Zero_g = fzero(g, [-pi 2*pi])
It works.
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Matrix Decomposition 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!