Plot sine wave with bandwidth

조회 수: 8 (최근 30일)
Vick
Vick 2017년 12월 2일
댓글: Image Analyst 2017년 12월 2일
Hi,
I want to create a sine wave with a given bandwidth, a plot similar to this,
Say my frequency is 20Hz, amplitude is 20 and bandwidth is 4.

답변 (1개)

Image Analyst
Image Analyst 2017년 12월 2일
How about just using the formula for sine:
x = linspace(......
y = 20 * sin(2*pi*20*x);
  댓글 수: 2
Vick
Vick 2017년 12월 2일
Hi, This will give me uniform sine wave how about specifying the bandwidth? my fc=20kHz; f2-f1=4kHz. I'm also interested in having sine plot similar to the below image where the bandwidth is not in a square form.
Image Analyst
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 CenterFile Exchange에서 Logical에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by