sinc function
显示 更早的评论
At y=0, the graph is not plotted. How would I plot it, to compare to the sinc(x) function. Thanks in advanced.
x=-20:0.1:20;
y=(sin(pi*x))/(pi*x);
if x=0
.....
end
plot(x,y,);
hold on
plot (x,sinc(x),'*');
采纳的回答
更多回答(1 个)
Walter Roberson
2011-4-15
0 个投票
The value is undefined at that location. What are you hoping to have plotted there?
类别
在 帮助中心 和 File Exchange 中查找有关 Mathematics 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!