필터 지우기
필터 지우기

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 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