How to rewrite non linear function?
Ältere Kommentare anzeigen
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!
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Get Started with Symbolic Math Toolbox finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!