Effacer les filtres
Effacer les filtres

how do i create a random matrix with set size yet the numbers are in a range from 0-9

50 vues (au cours des 30 derniers jours)
how do i create a random matrix with set size eg 4x6 yet the numbers are in a range from 0-9

Réponse acceptée

Matt J
Matt J le 14 Nov 2019
Modifié(e) : Matt J le 14 Nov 2019
randi([0,9],4,6) %random integers
or
9*rand(4,6) %non-integers

Plus de réponses (0)

Catégories

En savoir plus sur Creating and Concatenating Matrices dans Help Center et File Exchange

Tags

Produits


Version

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by