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