What kind of structure is that in MATLAB I've never seen it before... (Differential equations)

f = @(t,x) [-x(1)+3*x(3);-x(2)+2*x(3);x(1)^2-2*x(3)];
what does "@(t,x)" represent and there's some room between the expression and this thing I put in quotes..

 Respuesta aceptada

It creates a function handle, also called anonymous functions learn more here

1 comentario

Thank you. That was the first time i've seen it. I didn't even know how it was called.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Numerical Integration and Differential Equations en Centro de ayuda y File Exchange.

Preguntada:

el 9 de Mayo de 2014

Comentada:

el 10 de Mayo de 2014

Community Treasure Hunt

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

Start Hunting!

Translated by