How to make a repetitive random array with a curtain interval?
Afficher commentaires plus anciens
I need a array with 5000 increasing float and random numbers from 0 to 360 and also it should be repetitive inside like 0,.....,360,0,........,360,0.... and so on. Here my code without repetition feature:
a = 0;
b = 360;
% rng('shuffle');
r1 = sort((b-a)*rand(5000,1)+a,'ascend');
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Random Number Generation dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

