image size for loop

조회 수: 13 (최근 30일)
Rahaf mutlaq
Rahaf mutlaq 2019년 2월 28일
댓글: Rahaf mutlaq 2019년 2월 28일
hi
i have an image its size : 846x660x3 unit8
i want to do for loop that loop creat random values with the same size of image
i have tried this :
I = imread(11.JPG)
for ii =1: size (I)
%Alogarithm code
end

채택된 답변

Walter Roberson
Walter Roberson 2019년 2월 28일
outputs = zeros(size(I));
for ii = 1 : numel(I)
outputs(ii) = rand();
end
  댓글 수: 1
Rahaf mutlaq
Rahaf mutlaq 2019년 2월 28일
THANK YOU
it works <3<3

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

태그

Community Treasure Hunt

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

Start Hunting!

Translated by