
guardar 300 imagenes en el mismo .mat , como podriamos hacer,
Publicado por jorge (11 intervenciones) el 17/09/2017 06:29:01
para guardar 300 imagenes en un mismo .mat como podriamos hacer?
Valora esta pregunta


0
clear all
a=dir('*.jpg');
for i=1:7
archivos(:,:,:,i)=imread(a(1).name);
end
save('aaadata.mat','archivos')
b=load('aaadata.mat')
whos
>> convertir_imagen_archivos_mat
b =
archivos: [4-D uint8]
Name Size Bytes Class Attributes
a 34x1 22854 struct
archivos 4-D 9676800 uint8
b 1x1 9676976 struct
i 1x1 8 double