solving nonlinear equations in matlab

조회 수: 1 (최근 30일)
Dilan Kutmaral
Dilan Kutmaral 2019년 9월 3일
댓글: Star Strider 2019년 9월 10일
hello,
I have problem about an equation. I would like to solve this eqution in matlab as input value P and I want to obtain output value S.
Do you make the necessary arrangements for the code to work in this order?
Thanks in advance !!

채택된 답변

Star Strider
Star Strider 2019년 9월 3일
Use the Symbolic Math Toolbox:
syms S
P=10;
E=5;
V=0.33;
M=2;
K=1.5;
B=0.5;
H=0.3;
T=1;
Pfcn=((E*S)/(1-V^2)*M*K^2*B^2)*((H-S/2)*(H-S)*T+T^3);
Ssol = vpasolve(Pfcn == P)
producing:
Ssol =
1.2272645680296059191773342534578
- 0.16363228401480295958866712672892 - 1.5983944082554683248490550151884i
- 0.16363228401480295958866712672892 + 1.5983944082554683248490550151884i
  댓글 수: 2
Dilan Kutmaral
Dilan Kutmaral 2019년 9월 10일
Thanks!!!
Star Strider
Star Strider 2019년 9월 10일
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