shift

SHIFT a row or column RELATIVE to the other elements in a MATRIX.

您现在正在关注此提交

编者注: This file was a File Exchange Pick of the Week

Directory contents:

readme.txt
shiftl.m
shiftr.m
shiftu.m
shiftd.m

This set of files was developed using MATLAB Version 5.2.0.3084

Sometimes it is required to SHIFT a row or column RELATIVE to the other elements in a MATRIX. For a VECTOR, it may be necessary to shift the elements across, up or down the line.

With these files, a row can be moved to the left or right. The vacated spaces can be filled with zeroes or the removed elements can be wrapped around. A column can be moved up or down. The vacated spaces can be filled with zeroes or the removed elements can be wrapped around.

SHIFTL moves left, SHIFTR moves right, SHIFTU moves up, SHIFTD movesdown.

引用格式

John T. McCarthy (2026). shift (https://ww2.mathworks.cn/matlabcentral/fileexchange/53-shift), MATLAB Central File Exchange. 检索时间: .

类别

Help CenterMATLAB Answers 中查找有关 Cell Arrays 的更多信息

标签

添加标签

Add the first tag.

一般信息

MATLAB 版本兼容性

  • 兼容任何版本

平台兼容性

  • Windows
  • macOS
  • Linux
版本 已发布 发行说明 Action
1.0.0.0

Change category to 'Matrix Manipulation'