Im having a problem with finding the zeros of a sin function in a certain domain

10 ビュー (過去 30 日間)
Ivan
Ivan 2014 年 9 月 28 日
回答済み: Star Strider 2014 年 9 月 28 日
Here is my code
g=inline('sin(x)-(3x/2)')
Zero_g=fzero(g,[-pi,2*pi])

採用された回答

Star Strider
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 件)

カテゴリ

Help Center および File ExchangeMatrix Decomposition についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by