It flags me at the y(:, i) = x.^(i)./factorial(i); line below.
function exp = expapprox(x,n)n = 5;x = 1:5;% number of iterations for loop
for i = 1:n y(:, i) = x.^(i)./factorial(i);end exp = 1+ sum(y);actexp = exp(x); plot(actexp, expapprox(x,5))end
Best Answer