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

📄 codeshift.m

📁 GPS的matlab程序
💻 M
字号:
function [out]=codeshift(in_code , offset);
n1=5000;
n2=16367;
n=n2;
if offset==0;
    out=in_code;
end
if offset>0;  % shift right
 ca_temp(1,1:offset)=in_code(1,n-offset+1:n);
 in_code(1,offset+1:n)=in_code(1,1:n-offset);
 in_code(1,1:offset)=ca_temp(1,1:offset);
 out=in_code;
end
if offset<0;   %shift left
    offset=-offset;
 ca_temp(1,1:offset)=in_code(1,1:offset);
 in_code(1,1:n-offset)=in_code(1,offset+1:n);
 in_code(1,n-offset+1:n)=ca_temp(1,1:offset);
 out=in_code;
end

⌨️ 快捷键说明

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