plot sin function with sincommand
1 view (last 30 days)
Show older comments
Hi,
I want to know how to plot a sinc on matlab with sin
Thanks
0 Comments
Accepted Answer
Wayne King
on 24 Dec 2013
How about just using sinc() if you have the Signal Processing Toolbox.
If not
x = linspace(-5,5);
y = sin(pi*x)./(pi*x);
y(x==0) = 1;
plot(x,y)
More Answers (0)
See Also
Categories
Find more on Multirate Signal Processing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!