image size for loop

1 回表示 (過去 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