How to solve an equation using numerical solver in Matlab?

2 次查看(过去 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 CenterFile Exchange 中查找有关 Optimization 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by