fcolshift - fractional column circular shift

Versione 1.0.0 (1,73 KB) da Tan Nguyen
Function to perform fractional circular shift for each column of a matrix X by different amounts specified by a vector s.
23 download
Aggiornato 22 nov 2019

Visualizza la licenza

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
Creato con R2019b
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS Linux
Categorie
Scopri di più su Delaunay Triangulation in Help Center e MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Versione Pubblicato Note della release
1.0.0