COLSHIFT

버전 1.0.1 (1.74 KB) 작성자: Jos (10584)
Circularly shift each column of a matrix
다운로드 수: 9
업데이트 날짜: 2019/11/23

라이선스 보기

Y = colshift(X, S) circularly shifts the elements in the k-th column of
the matrix X by S(k) positions. If S(k) is positive, then the values of
X are circularly shifted from the beginning to the end. If S(k) is
negative, they are shifted from the end to the beginning.
If S is a scalar, each column is shifted by the amount S.

Example:
X = [ 1 11 21
2 12 22
3 13 23
4 14 24 ]
Y = colshift(X, [2 0 -1])
% -> [ 3 11 22
4 12 23
1 13 24
2 14 21 ]

See also circshift

인용 양식

Jos (10584) (2024). COLSHIFT (https://www.mathworks.com/matlabcentral/fileexchange/73429-colshift), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2019a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Correlation and Convolution에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.0.1

spelling fixes

1.0.0