Im using randsample() but im getting an error
Ältere Kommentare anzeigen
Im using randsample to make the program choose a random element from an array,
A=[2 3 4 5];
random=randsample(A,1)
but im getting an error that says 'randsample' requires Statistics and Machine Learning Toolbox.
So how can i make it work, or is there any other way i can make a random selection.
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Software Development Tools finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!