How to convert structure to variable seperately?

5 visualizaciones (últimos 30 días)
heo jaemu
heo jaemu el 5 de Feb. de 2015
Abierta de nuevo: heo jaemu el 5 de Feb. de 2015
I want to same effect. Like this,
a1 = imread('2015_01_26_1.jpg);
a2 = imread('2015_01_26_2.jpg);
a3 = imread('2015_01_26_3.jpg);
a4 = imread('2015_01_26_4.jpg);
I try this.
a = dir('C:~~~~~\*.jpg');
for i = 1 : length(a)
filename = strcat('C:~~~~\',a(i).name);
I = imread(filename);
end
how can I get same result?? I want to variables.
  2 comentarios
Jan
Jan el 5 de Feb. de 2015
The question is not clear.
heo jaemu
heo jaemu el 5 de Feb. de 2015
I have a structure like above image.
the structure is that load all jpg files in folder.
(so many files i have, so i want to read automatically.)
but, I can't use structure.
I want to variables.
and I want to answer like this,
image(i) = ~~~
for i = 1 : length(a)
~~~~
end
finally,
image(i) = ~~~~ % = imread('~~~.jpg'
image(2) = ~~~~

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Convert Image Type en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by