Permute a grouped vector

(Extension of RANDPERM)
2K Downloads
Aktualisiert 4. Apr 2016

Lizenz anzeigen

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.

Zitieren als

Dimitri Shvorob (2026). Permute a grouped vector (https://de.mathworks.com/matlabcentral/fileexchange/14415-permute-a-grouped-vector), MATLAB Central File Exchange. Abgerufen.

Kompatibilität der MATLAB-Version
Erstellt mit R14SP1
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS Linux
Kategorien
Mehr zu Matrices and Arrays finden Sie in Help Center und MATLAB Answers
Version Veröffentlicht Versionshinweise
1.0.0.0

BSD