# Sine sweep in matlab

195 visualizzazioni (ultimi 30 giorni)
James il 21 Mag 2015
Commentato: Image Analyst il 29 Apr 2022
How do i create a dataset which has a sine wave which is swept a hz to b hz within the time t.
##### 0 CommentiMostra -2 commenti meno recentiNascondi -2 commenti meno recenti

Accedi per commentare.

### Risposte (1)

Image Analyst il 21 Mag 2015
If you have the Signal Processing Toolbox look in the help for chirp():
chirp
Swept-frequency cosine
Syntax
y = chirp(t,f0,t1,f1)
y = chirp(t,f0,t1,f1,'method')
y = chirp(t,f0,t1,f1,'method',phi)
##### 8 CommentiMostra 6 commenti meno recentiNascondi 6 commenti meno recenti
Mahmoud Khadijeh il 29 Apr 2022
Can you pleaes help me with this code if you have the experience to do it?
This is the Logarithmic Sweep Rate equation that I am trying to implement:
The starting and ending frequencies are f1 and f2 , respectively.
The sweep rate in octaves per time is R
Image Analyst il 29 Apr 2022
f1 =
f2 =
R =
t = linspace(0, 5*pi, 2000);
frequency = linspace(f1, f2, length(t));
y = sin(2 * pi * frequency .* (-1 + 2.^(R * t)) / (R*log(2)));

Accedi per commentare.

### Categorie

Scopri di più su Pulse and Transition Metrics in Help Center e File Exchange

### Community Treasure Hunt

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

Start Hunting!

Translated by