image size for loop
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Rahaf mutlaq
am 28 Feb. 2019
Kommentiert: Rahaf mutlaq
am 28 Feb. 2019
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
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 28 Feb. 2019
outputs = zeros(size(I));
for ii = 1 : numel(I)
outputs(ii) = rand();
end
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!