How to implement this pseudocode as script

1 vue (au cours des 30 derniers jours)
Raiven Balderas
Raiven Balderas le 7 Mar 2018
Modifié(e) : Jan le 7 Mar 2018
n= a randomly chosen integer between 1 and 10^6

Réponse acceptée

Jan
Jan le 7 Mar 2018
Modifié(e) : Jan le 7 Mar 2018
n = randi([1, 1e6], 1)
You can find this by your own, if you ask an internet search engine for "Matlab random integer". One of the links is the documentation of randi.

Plus de réponses (0)

Catégories

En savoir plus sur Get Started with MATLAB dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by