Permute a grouped vector

(Extension of RANDPERM)
2K téléchargements
Mise à jour 4 avr. 2016

Afficher la licence

Function RANDPERG extends Matlab's RANDPERM by considering permutations of a grouped vector: if x is an n*1 data vector, and c is an n*1 vector of group assignments - so that x(i) belongs to group c(i) - randperg(x,c) returns an n*1 vector y where each c group retains the indexes it had in x [permutation is thus 'partial'], but its individual elements are randomly rearranged. See the function's help header for details.

Citation pour cette source

Dimitri Shvorob (2024). Permute a grouped vector (https://www.mathworks.com/matlabcentral/fileexchange/14415-permute-a-grouped-vector), MATLAB Central File Exchange. Récupéré le .

Compatibilité avec les versions de MATLAB
Créé avec R14SP1
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS Linux
Catégories
En savoir plus sur Matrices and Arrays dans Help Center et MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Publié le Notes de version
1.0.0.0

BSD