Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

How to write a system on nonlinear equations?

1 visualización (últimos 30 días)
John Doe
John Doe el 11 de Nov. de 2020
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
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

Respuestas (1)

Shadaab Siddiqie
Shadaab Siddiqie el 18 de Nov. de 2020
From my understanding you want to solve nonlinear equations. You can refer fsolve for more information.

La pregunta está cerrada.

Etiquetas

Productos


Versión

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by