Ahora está siguiendo esta publicación
- Verá actualizaciones en las notificaciones de contenido en seguimiento.
- Podrá recibir correos electrónicos, en función de las preferencias de comunicación que haya establecido.
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
Citar como
Stuart Layton (2026). Circular Shift Columns (https://la.mathworks.com/matlabcentral/fileexchange/37687-circular-shift-columns), MATLAB Central File Exchange. Recuperado .
Información general
- Versión 1.4.0.0 (1,92 KB)
Compatibilidad con la versión de MATLAB
- Compatible con cualquier versión
Compatibilidad con las plataformas
- Windows
- macOS
- Linux
