求解Fsolve多元二次非线性方程组的问题!! 感谢各位帮助。

各位好,学生初学Matlab,对于Fsolve求解非线性方程组进行了学习,但是还是对于各种参数的选择和使用不是很明白。
比如有如下方程组,其中已知参数值给出(未知量是Yd1,Zd1,Yc1,Zc1):
Ya=-300;Za=0;Yb=300;Zb=0;Yc=-500;Zc=-450;Yd=500;Zd=-450;Theta=8;
(Yc1-Ya)^2+Zc1^2=(Yc-Ya)^2+Zc^2;
(Yd1-Yb)^2+Zd1^2=(Yd-Yb)^2+Zd^2;
(Yc1-Yd1)^2+(Zc1-Zd1)^2=(Yc-Yd)^2+(Zc-Zd)^2;
(Zc1-Zd1)/(Yc1-Yd1)=tan(180*Theta/pi);
加上function M=answer(x),并调用[x,fval,exitflag,output] = fsolve(answer,xstart,options)
总是出错,调用Fsolve时括号内各项应填什么呢?我对应不起来。。。好像我的完全学错了。。
希望各位大神指教,膜拜!

 Réponse acceptée

hotehoh
hotehoh le 17 Nov 2022

0 votes

用1stOpt计算,很简单:
yc1: -758.532273352242
zc1: -179.57771101789
yd1: 194.926109632273
zd1: -481.102356638367

Plus de réponses (0)

Catégories

En savoir plus sur MATLAB 快速入门 dans Centre d'aide et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!