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

functionMATLABmatrixsymbolic

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.

Best Answer

  • x = 0 : .01: 1;
    u = x.^2 + 6*x - 7;