downshift.m

来自「斯坦福大学的小波的工具箱 比matlab自带的工具箱更完善」· M 代码 · 共 32 行

M
32
字号
function outimg = DownShift(matrix)
% DownShift -- Shift matrix down by one, move bottom line to the top.
%  Usage
%    outimg = DownShift(matrix);
%  Inputs   
%    matrix	a matrix
%  Outputs
%    outimg   	output image 
%  Examples
%    Test_DownShift.m
%  See Also
%    aconv2

[rows cols] = size(matrix);
outimg = zeros(rows, cols);
outimg(1,:) = matrix(rows,:);
outimg(2:rows,:) = matrix(1:(rows-1),:);

%
% Copyright (c) 1996. Xiaoming Huo
% 
    
    
%   
% Part of WaveLab Version 802
% Built Sunday, October 3, 1999 8:52:27 AM
% This is Copyrighted Material
% For Copying permissions see COPYING.m
% Comments? e-mail wavelab@stat.stanford.edu
%   
    

⌨️ 快捷键说明

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