shift

SHIFT a row or column RELATIVE to the other elements in a MATRIX.
ダウンロード: 6.2K
更新 2008/8/29

ライセンスの表示

編集メモ: 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 (2024). shift (https://www.mathworks.com/matlabcentral/fileexchange/53-shift), MATLAB Central File Exchange. 取得済み .

MATLAB リリースの互換性
作成: R10
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersCell Arrays についてさらに検索
タグ タグを追加

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
バージョン 公開済み リリース ノート
1.0.0.0

Change category to 'Matrix Manipulation'