plot sin function with sincommand

조회 수: 3 (최근 30일)
iman
iman 2013년 12월 24일
댓글: iman 2013년 12월 24일
Hi,
I want to know how to plot a sinc on matlab with sin
Thanks

채택된 답변

Wayne King
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)
  댓글 수: 1
iman
iman 2013년 12월 24일
Thank you very much

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by