How would I plot values of i for 1,2,3,4,5 individually on the same graph?
x = -pi:0.1:pi;ye = cos(x);n = length(x);summe = 0.0;for i = 1:n summe = summe +((-1).^(i)).*((x.^(2.*i))./(factorial(2.*i)));endhold onplot (x, summe);plot (cos(x), ye)
Best Answer