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

1 vue (au cours des 30 derniers jours)
Sun Heat
Sun Heat le 15 Oct 2018
Réponse apportée : KSSV le 15 Oct 2018
hh=[4 4 4 3 3 3 3 2 2 1]; like this

Réponse acceptée

KSSV
KSSV le 15 Oct 2018
r = randi([1 4],1,10)

Plus de réponses (0)

Catégories

En savoir plus sur MATLAB Coder dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by