Borrar filtros
Borrar filtros

Plotting infinite series on interval

3 visualizaciones (últimos 30 días)
jacob Mitch
jacob Mitch el 9 de Oct. de 2019
I have the following function for error approximation
function y = Approx(x,N);
Approx=zeros(1,length(x));
for n=0:N
Approx=Approx+(((-1)^n)*x^(2*n+1))/((factorial(n))*(2*n+1));
end
Approx=(2/sqrt(pi))*Approx
My question is how would I plot this on a given interval say -1,1 as well as plotting it again the built in erf in Matlab

Respuestas (0)

Categorías

Más información sobre Visual Exploration en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by