MATLAB: Entering a value into a returned string

taylor seriesuser input

I was wondering if there was a way to insert a value into multiple returned strings of a Taylor series. I tried it with two for commands but this isn't working how I thought it would. My code is
syms x
f=25*x^3-6*x^2+7*x-88
for x=1
for n=(0:4)
y=taylor(f,n)
end
end
Thanks in advance for any help.

Best Answer

May be so?
a = 1;
y = cell(5,1);
n = 0:4
for j1 = 1:numel(n)
y{j1} = taylor(f,n(j1),a);
end
OR
y1 = arrayfun(@(j1)taylor(f,j1,a),n,'un',0)
ADD
y1 = arrayfun(@(j1)subs(taylor(f,j1),x,1),0:4)