Azzera filtri
Azzera filtri

i want to generate a vector of (1,10) size and value is in between 1 to 4

3 visualizzazioni (ultimi 30 giorni)
hh=[4 4 4 3 3 3 3 2 2 1]; like this

Risposta accettata

KSSV
KSSV il 15 Ott 2018
r = randi([1 4],1,10)

Più risposte (0)

Categorie

Scopri di più su MATLAB Coder in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by