Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
How to write a system on nonlinear equations?
조회 수: 3 (최근 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!