randomise array with non-integer values

5 ビュー (過去 30 日間)
darksideofthemoon101
darksideofthemoon101 2011 年 4 月 5 日
Hi,
I want to randomise the elements in a 1-D array. I can't use randperm as the elements are non-integer values. Any ideas?
Thanks,
Richard

採用された回答

darksideofthemoon101
darksideofthemoon101 2011 年 4 月 5 日
Never mind, I solved the problem this way:
X=0.05:0.0025:0.15;
randomiser = randperm(length(layer));
X=X(randomiser);

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by