plot sin function with sincommand

Hi,
I want to know how to plot a sinc on matlab with sin
Thanks

 採用された回答

Wayne King
Wayne King 2013 年 12 月 24 日

0 投票

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 件)

質問済み:

2013 年 12 月 24 日

コメント済み:

2013 年 12 月 24 日

Community Treasure Hunt

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

Start Hunting!

Translated by