What is the problem here to run this code? Can I run this code without using fsolve?
11 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Akash Talapatra
am 18 Feb. 2022
Kommentiert: Akash Talapatra
am 18 Feb. 2022
function fn=ex_sys_n(x);
fn(1)=exp(-x(1)+x(2))-x(1)^2;
fn(2)=sin(x(1))+cos(x(2));
clc; clear all;
fun=@(x) ex_sys_nl(x);
x0=[0,0];
x=fsolve(fn,x0)
0 Kommentare
Akzeptierte Antwort
Matt J
am 18 Feb. 2022
x0=[0,0];
x=fsolve(@ex_sys_n,x0)
function fn=ex_sys_n(x);
fn(1)=exp(-x(1)+x(2))-x(1)^2;
fn(2)=sin(x(1))+cos(x(2));
end
2 Kommentare
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
