How to rewrite non linear function?
显示 更早的评论
Hello!
I have a problem! This is my first question here, so sorry if it's already answered :)
I have a non linear function
f=@(x,y)[x^3+10*x-y-5; x+y^3-10*y+1]
and I need it use in fsolve, but it won't work if the function isn't writen as
f=[x(1)^3+10*x(1)-x(2)-5; x(1)+x(2)^3-10*x(2)+1]
Can it be somehow rewriten it to the correct form? Is there any way? I can't just rewrite the function because then the rest of the code won't work and subs won't work with x(1) and x(2).
Thank you!
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Get Started with Symbolic Math Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!