How to use correctly fsolve

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 日

0 投票

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)

カテゴリ

ヘルプ センター および File ExchangeSystems of Nonlinear Equations についてさらに検索

質問済み:

2016 年 10 月 17 日

回答済み:

2016 年 10 月 17 日

Community Treasure Hunt

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

Start Hunting!

Translated by