📄 coordaxes.m
字号:
function [x,y] = coordAxes(freq, time, sampleRate, pulseLength)
% time = imput sequence Length (x axis)
% freq = the frequency axis length (y axis)
% sampleRate = this is the chip length in a single pulse. if the pulse is [1 1 1 1]
% ----
% | |
% ---- ----
% then sampleRate = 4. %
%
% tb = pulse jength
% x axis label = [tao/tb]
% -------------------------------------------------------------------
% ******** VERIFICATION *****************
% CHECKED with:
% barker Pulselength = 13, sampleRate =1;
% rectangular pulse Pulselength = 1, sampleRate =14;
% rectangular pulse Pulselength = 1, sampleRate =8;
% -------------------------------------------------------------------
% ******** REFERENCE FOR CHECKING *****************
% COMPARED with "Radar Signals" Levanon N.,Eli Mozeson, Wiley 2004
% -------------------------------------------------------------------
half = floor((time)/2);
x = -half:half;
x = x/sampleRate;
half = (freq)/2;
y1=1:half-1;
y2 = (-half):0;
y = cat(2,y2,y1);
y = (y*sampleRate*pulseLength)/(freq); %normalize according to the pulse length
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -