📄 ambfuna.m
字号:
% Ambiguity Function for Linear FM Pulse
% --------------------------------------
clc;clg;clear;
N=64;
% Pulse length and time vector
Tp=6;
t=-Tp/2:6/(N-1):Tp/2;
% Instanteous Frequency and deviation
df=.3;
f=t*(df/2/3); fs=N/6; % Mhz
% Linear FM signal
j=sqrt(-1);
x=exp(j*2*pi*f.*t);
% Form Ambiguity Function
Bx=[];
for fd=-4*df:df/11:4*df;
y=x.*exp(-j*2*pi*fd*t);
chi=abs(xcorr(x,y));
Bx=[chi;Bx];
end;
clg;mesh(Bx,[135 60]);
title(['Ambiguity Function for Linear FM']);
xlabel('time');ylabel('frequency');
zlabel('amplitude');
%subplot(212);contour(Bx);
%title(['Contour Plot']);
%xlabel('time');ylabel('frequency');
end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -