フィルターのクリア

Solve Command for Unknown Parameters

3 ビュー (過去 30 日間)
Mostafa Sallam
Mostafa Sallam 2018 年 8 月 23 日
編集済み: Mostafa Sallam 2018 年 8 月 23 日
Dears,
How can I solve the following equation with MATLAB to get the value of the unknown parameter (beta):
7*exp(-0.008*beta)+0.008*sin(7*beta)-7*cos(7*beta)=0
I tried to use "SOLVE" command, but it give me every time: beta = 0
I don't know what's the incorrect in it.

採用された回答

Steven Lord
Steven Lord 2018 年 8 月 23 日
Let's see how your function looks in a neighborhood around y = 0.
f = @(beta) 7*exp(-0.008*beta)+0.008*sin(7*beta)-7*cos(7*beta);
fplot(f);
yticks(0);
grid on
ylim([-0.5 0.5]);
beta = 0 does look like a solution, but it is not the only solution. Calling fzero with different initial guesses may allow you to calculate those other solutions. If you think about your function you should be able to calculate roughly how far apart the local minima of your function should be, and that can inform your choice of starting points for fzero.
  1 件のコメント
Mostafa Sallam
Mostafa Sallam 2018 年 8 月 23 日
編集済み: Mostafa Sallam 2018 年 8 月 23 日
Thanks

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

その他の回答 (1 件)

Walter Roberson
Walter Roberson 2018 年 8 月 23 日
If you vpasolve you can pass in a range to search over.

カテゴリ

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

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by