Filter löschen
Filter löschen

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

3 Ansichten (letzte 30 Tage)
hh=[4 4 4 3 3 3 3 2 2 1]; like this

Akzeptierte Antwort

KSSV
KSSV am 15 Okt. 2018
r = randi([1 4],1,10)

Weitere Antworten (0)

Kategorien

Mehr zu MATLAB Coder 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