How to implement this pseudocode as script

조회 수: 1 (최근 30일)
Raiven Balderas
Raiven Balderas 2018년 3월 7일
편집: Jan 2018년 3월 7일
n= a randomly chosen integer between 1 and 10^6

채택된 답변

Jan
Jan 2018년 3월 7일
편집: Jan 2018년 3월 7일
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.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by