Incorrect number or types of inputs and outputs for function 'isfinite'
조회 수: 57 (최근 30일)
이전 댓글 표시
I want to solve this nonlinear system, but it always says in red: Incorrect number or types of inputs and outputs for function 'isfinite', and I'm a beginner I don't know how to fix it.
Could you please give me some advice? Thx.
x=fsolve('@system',[0 0])
function f=system(x)
f=[2*x(1)+x(2)+x(1)^3; x(1)+x(1)*x(2)+exp(x(1))];
end
댓글 수: 0
채택된 답변
Florian Bidaud
2023년 9월 7일
편집: Florian Bidaud
2023년 9월 7일
You need to remove the quotes
x=fsolve(@system,[0 0])
function f=system(x)
f=[2*x(1)+x(2)+x(1)^3; x(1)+x(1)*x(2)+exp(x(1))];
end
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!