求解Fsolve多元二次非线性方程组的问题!! 感谢各位帮助。
Mostrar comentarios más antiguos
各位好,学生初学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时括号内各项应填什么呢?我对应不起来。。。好像我的完全学错了。。
希望各位大神指教,膜拜!
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre MATLAB 快速入门 en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!