📄 cp0804_signalshift.m
字号:
%
% 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -