フィルターのクリア

Gabor transform for a sine wave

27 ビュー (過去 30 日間)
Mohannad suleiman
Mohannad suleiman 2021 年 2 月 27 日
コメント済み: Yashender Sharma 2021 年 3 月 16 日
Please Could you Help to implement a Gabor Transform code in Matlab for a sine wave . I just wanna se the spectrogram for it

回答 (1 件)

Yashender Sharma
Yashender Sharma 2021 年 3 月 16 日
Constant-Q nonstationary Gabor transform histogram for a Sine Wave
fy=5; %signal frequency in Hz
wy=2*pi*fy; %signal frequency in rad/s
fs=100; %sampling frequency in Hz
tiv=1/fs; %time interval between samples;
t=0:tiv:10; %time intervals
y=sin(wy*t); %signal data set
subplot(311),plot(t,y); %plots figure
axis([0 10 -1.5 1.5]);
xlabel('seconds'); title('sine signal');
subplot(312),stem(t,y,'*'); %plots figure
axis([0 1 -1.5 1.5]);
xlabel('seconds'); title('Samples of sine signal for Time Period of 1 second');
subplot(313),cqt(y,'SamplingFrequency',fs);%plots histogram of Constant-Q nonstationary Gabor transform
For Additional information on this you can browse https://in.mathworks.com/help/wavelet/ref/cqt.html
  1 件のコメント
Yashender Sharma
Yashender Sharma 2021 年 3 月 16 日
fy=5; %signal frequency in Hz
wy=2*pi*fy; %signal frequency in rad/s
fs=100; %sampling frequency in Hz
tiv=1/fs; %time interval between samples;
t=0:tiv:10; %time intervals
y=sin(wy*t); %signal data set
subplot(311),plot(t,y); %plots figure
axis([0 10 -1.5 1.5]);
xlabel('seconds'); title('sine signal');
subplot(312),stem(t,y,'*'); %plots figure
axis([0 1 -1.5 1.5]);
xlabel('seconds'); title('Samples of sine signal for Time Period of 1 second');
subplot(313),cqt(y,'SamplingFrequency',fs);%plots histogram of Constant-Q nonstationary Gabor transform

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeSpectral Measurements についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by