How to Change Array Values with some Random numbers

3 visualizaciones (últimos 30 días)
sami ullah
sami ullah el 2 de Mzo. de 2021
Comentada: sami ullah el 2 de Mzo. de 2021
I have an array of size (1x12) consisting of following values: K=12 34 56 57 3 5 77 88 65 12 33 44
I have to change each value of K with some random numbers. How it can be done.

Respuestas (1)

KALYAN ACHARJYA
KALYAN ACHARJYA el 2 de Mzo. de 2021
K=randi([min_value max_value],1,12)

Categorías

Más información sobre Multidimensional Arrays en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by