How to store functions in matrix or some way to define them by iterations?

11 visualizaciones (últimos 30 días)
Don't mind comments. This is code from Maple. Is there any way to do it in matlab?
I do it manually like that
u1(x) = ...
u2(x) = ...
un(x) = ...
and I'm intrested if there better way to do it.

Respuesta aceptada

madhan ravi
madhan ravi el 3 de Oct. de 2020
Editada: madhan ravi el 3 de Oct. de 2020
x = 0 : .01: 1;
u = x.^2 + 6*x - 7;

Más respuestas (0)


Más información sobre Matrix Indexing en Help Center y File Exchange.




Community Treasure Hunt

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

Start Hunting!

Translated by