cp0804_signalshift.m
来自「超宽带定位系统中的两种信号形式」· M 代码 · 共 21 行
M
21 行
%
% Function 8.14: "cp0804_signalshift"
%
% Applies a circular shift of 't' seconds
% to the input vector 'in'
%
% Programmed by Guerino Giancola
%
function [out] = cp0804_signalshift(in,fc,t)
% ------------------------------------
% Step One - Shifting the input signal
% ------------------------------------
dt = 1 / fc; % sampling period
% shift samples
ss = mod(floor(t/dt),length(in));
out = in([end-ss+1:end 1:end-ss]);
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?