Borrar filtros
Borrar filtros

How to implement this pseudocode as script

2 visualizaciones (últimos 30 días)
Raiven Balderas
Raiven Balderas el 7 de Mzo. de 2018
Editada: Jan el 7 de Mzo. de 2018
n= a randomly chosen integer between 1 and 10^6

Respuesta aceptada

Jan
Jan el 7 de Mzo. de 2018
Editada: Jan el 7 de Mzo. de 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.

Más respuestas (0)

Categorías

Más información sobre Get Started with MATLAB en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by