📄 cp0704_time_mask.m
字号:
%
% FUNCTION 7.13 : "cp0704_time_mask"
%
% This function defines the signal in the time domain
% corresponding to the FCC indoor emission mask for UWB
% devices in the frequency domain
%
% The function receives in input:
% 1) and 2) the time interval to be considered, through the
% lower limit 'Tmin' and the upper limit 'Tmax'
% 3) the number of samples in the time domain 'smp'
%
% The function returns a vector 'timemissionmask' of 'smp'
% points representing the Fourier anti-transform of the
% square root of the FCC mask.
%
% The constant values used in the function have been
% analytically derived by representing the mask as the sum
% of translated rects in the frequency domain, based on the
% formula:
% A*rectT(t) <--> A * T * sin(pi*f*T)/(pi*f*T)
%
% and on the duality and translation properties of the
% Fourier transform.
%
% Programmed by Luca De Nardis
function[timeemissionmask]=cp0704_time_mask(Tmin,Tmax,smp)
% -----------------------------------------------
% Step Zero - Input parameters and Initialization
% -----------------------------------------------
% sampling period
dt = (Tmax-Tmin)/smp;
% sampling frequency
fs = 1/dt;
% Inizialization of the time axis
x=linspace(Tmin,Tmax,smp);
% Periods of the sin(x)/x functions in the time domain
t(1)=1/(0.96e9);
t(2)=1/(0.65e9);
t(3)=1/(0.38e9);
t(4)=1/(1.11e9);
t(5)=1/(7.5e9);
% Adjusting the last value depending on fs
t(6)=1/(fs/2-10.6);
% Amplitudes of the rects functions in the frequency domain
a(1)=261.408;
a(2)=3.53;
a(3)=25.99;
a(4)=95.571;
a(5)=2042.25;
% Adjusting the last value depending on fs
a(6)=8.61e-8/t(6);
% Evaluation of the frequency shifts
for i=1:6
f0(i)=0;
if i>1
for k=1:(i-1)
f0(i)=f0(i)+1/t(k)
end
f0(i)=f0(i)+1/(2*t(i));
else
f0(i)=1/(2*t(i));
end
s(i,:)=a(i)*(sin(pi*x/t(i))./(pi*x/t(i))).*exp(j*2*pi*f0(i)*x);
% Performing the fourier AT
end
comb=ones(1,6);
timeemissionmask=comb * s;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -