⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cirshftt.m

📁 matlab的一些基础程序
💻 M
字号:
function [y]=cirshftt(x,m,N)

%[y]=cirshftt(x,m,N)
%y=output sequence containing the circular shift
%x=input sequence of length <=N
%m=sample shift 
%N=size of circular buffter
%method: y(n)=x((n-m)) mod N)
if length(x)>N 
   error('N must be >= the length of x')
end
x=[x zeros(1,N-length(x))]
n=[0:1:N-1]
n=mod(n-m,N)
y=x(n+1)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -