time-frequency shifted gaussian function
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Audio I/O and Waveform Generation 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!