plot sin function with sincommand
조회 수: 3 (최근 30일)
이전 댓글 표시
Hi,
I want to know how to plot a sinc on matlab with sin
Thanks
댓글 수: 0
채택된 답변
Wayne King
2013년 12월 24일
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)
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!