Your x(1) is1.96. Then in the first iteration, wheree=1,fj{x(e)} tries to use 1.96 as index of the cell arrayfj. But as the error message tells you, indices must be positive integers.
I guess you want:
fj(e) = ...
Readdoc cell concerning the curly braces and cell arrays.
Are you sure thate andi should be symbolic variables?
Best Answer