Borrar filtros
Borrar filtros

Use of for loop and vectorization for creating an array

1 visualización (últimos 30 días)
Hi!
I am wanting to declare a 2-D matrix of type uint8 and order 240x320 and fill non-zero data in it. How can I do this using a for loop and/or while loop and vectorization. Please help.
Thanks

Respuesta aceptada

Oleg Komarov
Oleg Komarov el 5 de Jul. de 2011
randi(240,320,'uint8')

Más respuestas (0)

Categorías

Más información sobre MATLAB Compiler SDK 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