How to solve this equation in Matlab

조회 수: 2 (최근 30일)
Carlos Galvis Correa
Carlos Galvis Correa 2020년 12월 3일
댓글: Star Strider 2020년 12월 5일
Dear All,
Can anyone please let me know how to solve the equation showed in the picture using Matlab, please.
Regards,
Carlos G

채택된 답변

Star Strider
Star Strider 2020년 12월 3일
Put everything on the right-hand side, so:
f = @(d) expression - 30.19/d^2;
then use fzero or fsolve or the Symbolic Math Toolbox solve function (since it may have two roots, and with slightly different coding) to evaluate it.
  댓글 수: 2
Carlos Galvis Correa
Carlos Galvis Correa 2020년 12월 5일
Hi,
I wrote the equation as "f = @(d)" as the proposed solution stated. However I used vpasolve (f,d)
Thanks for your help.
Regards,
Carlos G
Star Strider
Star Strider 2020년 12월 5일
As always, my pleasure!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by