How to solve an equation using numerical solver in Matlab?

조회 수: 4 (최근 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 CenterFile Exchange에서 Optimization Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by