How to use correctly fsolve

조회 수: 1 (최근 30일)
salvatore liberto
salvatore liberto 2016년 10월 17일
답변: Walter Roberson 2016년 10월 17일
Hi everyone, i don't be able to find the way to write a nonlinear system. Can you help me? The system is substantially in this form:
1) (x(i+1)-x(i))*(y(i+1)-y(i))+x(i-1)-y(i-1);
2) (x(i+1)-2x(i))-y(i)

답변 (1개)

Walter Roberson
Walter Roberson 2016년 10월 17일
Vectorize
diff(x(3:end)) .* diff(y(2:end-1)) + x(1:end-1) - y(1:end-1)
x(3:end) - 2 * x(2:end-1) - y(2:end-1)

카테고리

Help CenterFile Exchange에서 Systems of Nonlinear Equations에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by