Use of for loop and vectorization for creating an array

1 回表示 (過去 30 日間)
Somesh Singh
Somesh Singh 2011 年 7 月 5 日
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 Center および File ExchangeMATLAB Compiler SDK についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by