📄 gmonopulse.m
字号:
%gmonopuls.mat a new function program written in Matlab for a 2GHz gaussian monopulse both in
%the Time&Frequency domains
N=12;fc=2E9;fs=100E9;n=0:N-1;
%2GHz UWB Gaussian monopulse in the time domain sampled at a rate of 100 GHz.
tc=gmonopuls('cutoff',fc);%width of each pulse(0.5nS)
t=-2*tc:1/fs:2*tc;%signal evaluation time
y=gmonopuls(t,fc);
figure(1);subplot(1,1,1);subplot(1,2,1);
plot(t,y);grid;title('UWB Gaussian Monopulse in the time domain');
xlabel('Time in nanoseconds');ylabel('Unity-Amplitude');
%spectrum of a 2GHz G.monopulse
tc=gmonopuls('cutoff',fc);%width of each pulse(0.5nS)
t=-2*tc:1/fs:2*tc;%signal evaluation time
y=gmonopuls(t,fc);Y=fft(y);magY=abs(Y);
fy=0:(N/2)-1;%first make a vector f=0,1,2,...(N/2)-1
fy=(fy*fs)/N;%scale frequencies in Hertz
subplot(1,2,2);plot(fy,20*log10(magY(1:N/2)));grid;
title('UWB Gaussian monopulse in the frequency domain');
xlabel('Frequency in GHz');ylabel('Unity-Amplitude');
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -