Filter löschen
Filter löschen

How to implement this pseudocode as script

2 Ansichten (letzte 30 Tage)
Raiven Balderas
Raiven Balderas am 7 Mär. 2018
Bearbeitet: Jan am 7 Mär. 2018
n= a randomly chosen integer between 1 and 10^6

Akzeptierte Antwort

Jan
Jan am 7 Mär. 2018
Bearbeitet: Jan am 7 Mär. 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.

Weitere Antworten (0)

Kategorien

Mehr zu Get Started with MATLAB finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by