Info
此问题已关闭。 请重新打开它进行编辑或回答。
How to write a system on nonlinear equations?
1 次查看(过去 30 天)
显示 更早的评论
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
0 个评论
回答(1 个)
Shadaab Siddiqie
2020-11-18
From my understanding you want to solve nonlinear equations. You can refer fsolve for more information.
0 个评论
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!