How to enter the following functions

2 ビュー (過去 30 日間)
Santiago Rodrigues
Santiago Rodrigues 2019 年 10 月 6 日
コメント済み: Stephan 2019 年 10 月 6 日
Hello,
So I need to enter the functions
6cos(theta)=theta/5 in the interval [pi,2pi] and
e^(-0.01x)=7x-2 in the interval [0,3]
The objective is to use the fzero opperator and stuff.
How can I do this?

採用された回答

Stephan
Stephan 2019 年 10 月 6 日
編集済み: Stephan 2019 年 10 月 6 日
you need to rewrite so that the given equations are equal to zero. Then fzero finds x.
fun = @(x) something with x equal to zero
x0 = some starting point
res = fzero(fun,x0)
  3 件のコメント
Santiago Rodrigues
Santiago Rodrigues 2019 年 10 月 6 日
Yeah, thanks. I realize I am very dumb. Thank you foe your help
Stephan
Stephan 2019 年 10 月 6 日
Did you notice that you can accept and/or vote for useful answers?

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by