How to use sinc function in a piecewise operation
1 回表示 (過去 30 日間)
古いコメントを表示
I am getting an error that reads, "Check for missing argument or incorrect argument data type in call to function 'sinc' ". I am trying to implement this piecewise function,
when
and 0 otherwise. This is what I am doing,
when
and 0 otherwise. This is what I am doing,t = 0: 0.0001: 0.1;
m = (sinc(100*t))*(abs(t) <= to);
0 件のコメント
採用された回答
David Hill
2020 年 4 月 12 日
t = -.1: 0.0001: 0.1;
t0=.09;
m = (sinc(100*t)).*(abs(t) <= t0);
plot(t,m);
5 件のコメント
David Hill
2020 年 4 月 12 日
Do you have the Signal Processing Toolbox? If not, you will have to program sinc.
t = -.1: 0.0001: 0.1;
t=t(t~=0);
t0=.09;
m = (sin(pi*100*t))./(pi*100*t).*(abs(t) <= t0);
plot(t,m);
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Surface and Mesh Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!