Permute a grouped vector

(Extension of RANDPERM)
ダウンロード: 2K
更新 2016/4/4

ライセンスの表示

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.

引用

Dimitri Shvorob (2024). Permute a grouped vector (https://www.mathworks.com/matlabcentral/fileexchange/14415-permute-a-grouped-vector), MATLAB Central File Exchange. 取得済み .

MATLAB リリースの互換性
作成: R14SP1
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersMatrices and Arrays についてさらに検索
謝辞

ヒントを得たファイル: PARTPERM -- Partial random permutation of a vector, shake

Community Treasure Hunt

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

Start Hunting!
バージョン 公開済み リリース ノート
1.0.0.0

BSD