?? 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 + -