Circular Shift Columns

버전 1.4.0.0 (1.92 KB) 작성자: Stuart Layton
This function quickly and independently circularly shift each column of an input matrix
다운로드 수: 384
업데이트 날짜: 2012/8/20

라이선스 보기

CIRCSHIFT_COLUMNS Circularly shift each column by a different amount

B = CIRCSHIFT_COLUMNS(A, SHIFT_VECTOR) circularly shifts the columns in A
by the values specified in the vector D. Negative elements of D shift columns up
and positive values shift columns down.

B = CIRCSHIFT_COLUMNS(A) generates random shift values bound
between 0 and the number of rows in A.

[B D] = CIRCSHIFT_COLUMNS(...) returns the vector of shift values

Example:
A = [ 1 1 1; 2 2 2; 3 3 3; 4 4 4];
B = circshift_columns(A, [0 1 -2]);
B = 1 4 3
2 1 4
3 2 1
4 3 2

인용 양식

Stuart Layton (2026). Circular Shift Columns (https://kr.mathworks.com/matlabcentral/fileexchange/37687-circular-shift-columns), MATLAB Central File Exchange. 검색 날짜: .

MATLAB 릴리스 호환 정보
개발 환경: R2012a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Transforms에 대해 자세히 알아보기
버전 게시됨 릴리스 정보
1.4.0.0

Fixed spelling errors in the help documentation

1.1.0.0

fixed typo in summary

1.0.0.0