필터 지우기
필터 지우기

time-frequency shifted gaussian function

조회 수: 2 (최근 30일)
christina
christina 2018년 7월 3일
I am trying to implement a function that generates a cyclic time and frequency shifted version of a gaussian function.
When I plot the function, the function looks like the one on the left while I desire to have a plot as shown on the right. Can somebody suggest me how can I attain the desired plot?
Following is my matlab code: clc close all
L = 256; % Length of the signal
% Define Parameters
a = 12; %time hop
b = 16; %frequency hop
M = L/b;
m = 0; % frequncy index
n = 0; % time index
sigma = 50;
fxn =zeros(L,1);
l=0:L-1;
for i=1:length(l)
fxn(i,1) = exp(-pi*((l(i)-n*a)^2)/(sigma^2)) * exp(1i*2*pi*m*(l(i)-n*a)/L);
end
fxn = (1/norm(fxn)) .* fxn; %Normalization

답변 (0개)

카테고리

Help CenterFile Exchange에서 Spectral Measurements에 대해 자세히 알아보기

태그

제품


릴리스

R2016a

Community Treasure Hunt

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

Start Hunting!

Translated by