randomise array with non-integer values

2 次查看(过去 30 天)
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
Never mind, I solved the problem this way:
X=0.05:0.0025:0.15;
randomiser = randperm(length(layer));
X=X(randomiser);

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by