fcolshift - fractional column circular shift
FCOLSHIFT Fractional circular shift over the column dimension by a vector s.
y = fcolshift(X, S) where X is a 2D matrix of M rows x N columns. S is a vector of length N. The function will circular shift the i-th column of the matrix X by an amount that is equal to s[i] pixels.
Expanded from the first implementation of fshift by Francois Bouffard at https://www.mathworks.com/matlabcentral/fileexchange/7886-fshift
Examples:
X = [ 1 2 3; 4 5 6; 7 8 9]; % Input matrix
S = [1 -2 0] % Amount of shift to perform.
Y = 7 8 3
1 2 6
4 5 9
Based on the first implementation of fshift by Francois Bouffard.
Author: Tan H. Nguyen - Massachusetts Institute of technology.
Please report bugs to thnguyn@mit.edu
Cita come
Tan Nguyen (2024). fcolshift - fractional column circular shift (https://www.mathworks.com/matlabcentral/fileexchange/73424-fcolshift-fractional-column-circular-shift), MATLAB Central File Exchange. Recuperato .
Compatibilità della release di MATLAB
Compatibilità della piattaforma
Windows macOS LinuxCategorie
Tag
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Scopri Live Editor
Crea script con codice, output e testo formattato in un unico documento eseguibile.
Versione | Pubblicato | Note della release | |
---|---|---|---|
1.0.0 |