Plot sine wave with bandwidth
3 ビュー (過去 30 日間)
古いコメントを表示
Hi,
I want to create a sine wave with a given bandwidth, a plot similar to this,
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/170545/image.png)
Say my frequency is 20Hz, amplitude is 20 and bandwidth is 4.
0 件のコメント
回答 (1 件)
Image Analyst
2017 年 12 月 2 日
How about just using the formula for sine:
x = linspace(......
y = 20 * sin(2*pi*20*x);
2 件のコメント
Image Analyst
2017 年 12 月 2 日
A sine wave does not have a bandwidth. The bandwidth is zero because it's a single frequency. To get something with a bandwidth that's not zero, you'd have to have something different than a pure sine wave.
参考
カテゴリ
Help Center および File Exchange で Get Started with MATLAB についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!