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

1 visualización (últimos 30 días)
hh=[4 4 4 3 3 3 3 2 2 1]; like this

Respuesta aceptada

KSSV
KSSV el 15 de Oct. de 2018
r = randi([1 4],1,10)

Más respuestas (0)

Categorías

Más información sobre MATLAB Coder en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by