How to solve an equation using numerical solver in Matlab?

2 ビュー (過去 30 日間)
aa
aa 2020 年 9 月 30 日
コメント済み: aa 2020 年 9 月 30 日
Hi everyone,
I want to solve this equation using numerical solver. I have value of R and want to calculate the coressponding value of n using numerical solver.
May someone help me here ......
R =1/n^2 [(n+1)ln(n+1)-n]

採用された回答

Alan Stevens
Alan Stevens 2020 年 9 月 30 日
Look up documentation on fzero.
  11 件のコメント
John D'Errico
John D'Errico 2020 年 9 月 30 日
But what is wrong with writing a loop? Just wrap that code inside a loop, where you change R each time through.
aa
aa 2020 年 9 月 30 日
Earlier my code did not work with the loop but now I have fixed the error... it works perfectly .. Thanks

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

その他の回答 (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