image size for loop

5 visualizaciones (últimos 30 días)
Rahaf mutlaq
Rahaf mutlaq el 28 de Feb. de 2019
Comentada: Rahaf mutlaq el 28 de Feb. de 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

Respuesta aceptada

Walter Roberson
Walter Roberson el 28 de Feb. de 2019
outputs = zeros(size(I));
for ii = 1 : numel(I)
outputs(ii) = rand();
end
  1 comentario
Rahaf mutlaq
Rahaf mutlaq el 28 de Feb. de 2019
THANK YOU
it works <3<3

Iniciar sesión para comentar.

Más respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by