How do you plot a summation function? please help.
25 次查看(过去 30 天)
显示 更早的评论
nmax= 11. and z∈{0~+10}.How do you plot this function? this is the inside of the Summation, if it is any helpful.
f = [(-1^k)*(x^(2*k+1))*2]/[(sqrt(pi))*(factorial(k))*(2*k+1)]
Now I need to do the summation and plot it from 0 to 11 with a z from 0 to 10.
0 个评论
回答(1 个)
Walter Roberson
2020-11-4
f = @(x,k) ((-1.^k).*(x.^(2*k+1))*2)./((sqrt(pi))*(factorial(k)).*(2*k+1))
z = [0, 1, 2];
n = 0:11;
erfz = 2/sqrt(pi)*sum(f(z(:), n),2)
and now plot.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Calculus 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!