Create a function called UniformAB that allow to generate N as a random integer value between A and B
Afficher commentaires plus anciens
Create a function called UniformAB that allow to generate N as a random integer value between A and B
2 commentaires
Daniel Pollard
le 9 Déc 2020
https://uk.mathworks.com/help/matlab/ref/randi.html
Adam Danz
le 9 Déc 2020
Do you have a question?
Réponses (1)
Manvi Goel
le 14 Déc 2020
function N = UniformAB(a, b)
N = randi([a,b], 1,1);
end
Catégories
En savoir plus sur Creating and Concatenating Matrices 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!