Use of for loop and vectorization for creating an array

1 次查看(过去 30 天)
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

采纳的回答

Oleg Komarov
Oleg Komarov 2011-7-5
randi(240,320,'uint8')

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 MATLAB Compiler SDK 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by