Plot sine wave with bandwidth

10 Ansichten (letzte 30 Tage)
Vick
Vick am 2 Dez. 2017
Kommentiert: Image Analyst am 2 Dez. 2017
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.

Antworten (1)

Image Analyst
Image Analyst am 2 Dez. 2017
How about just using the formula for sine:
x = linspace(......
y = 20 * sin(2*pi*20*x);
  2 Kommentare
Vick
Vick am 2 Dez. 2017
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 am 2 Dez. 2017
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.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Get Started with MATLAB finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by