フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

How to write a system on nonlinear equations?

1 回表示 (過去 30 日間)
John Doe
John Doe 2020 年 11 月 11 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
Forgive me if this has already been asked, but I'm trying to find out how to write a system on nonlinear equations as a function in MATLAB
for example:
a*(x(i))^2 + x(i-1) - x(i) = 0
How would I write this for any given size of x without writing the equations manually?
Would it be something like the following:
function y = myFunction(x)
y = a*(x(i))^2 + x(i-1) - x(i)
end

回答 (1 件)

Shadaab Siddiqie
Shadaab Siddiqie 2020 年 11 月 18 日
From my understanding you want to solve nonlinear equations. You can refer fsolve for more information.

この質問は閉じられています。

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by