📄 rright.m
字号:
function rr = rright(v,n)
%rr = rright(array,n) will rotate the given
%array n steps to the right and pass the output
%to the array rr.
%
%The input variables are
%array: The input array
%n : This gives the amount of rotation in terms of
% number if samples.
%
%Author: Ajit S. Bopardikar
%Copyright (c) 1998 by Addison Wesley Longman, Inc.
%
l = length(v);
rr = [v(l-n+1:l) v(1:l-n)];
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -