How to solve an equation using numerical solver in Matlab?

4 visualizzazioni (ultimi 30 giorni)
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]

Risposta accettata

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

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Optimization Toolbox in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by