solving nonlinear equations in matlab
1 次查看(过去 30 天)
显示 更早的评论
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 !!
0 个评论
采纳的回答
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
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Symbolic Math Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!