Sine sweep in matlab

조회 수: 131 (최근 30일)
James
James 2015년 5월 21일
댓글: Image Analyst 2022년 4월 29일
How do i create a dataset which has a sine wave which is swept a hz to b hz within the time t.

답변 (1개)

Image Analyst
Image Analyst 2015년 5월 21일
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)
y = chirp(t,f0,t1,f1,'quadratic',phi,'shape')
  댓글 수: 8
Mahmoud Khadijeh
Mahmoud Khadijeh 2022년 4월 29일
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
Thank you in advance!
Image Analyst
Image Analyst 2022년 4월 29일
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)));

댓글을 달려면 로그인하십시오.

Community Treasure Hunt

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

Start Hunting!

Translated by