combine a number of files together? cat,vertcat and horzcat do not work...
Mostrar comentarios más antiguos
Hey all!
I have 254 files named blah_blah_001 until blah_blah_254. Each file has 723 x 3127 dimension and I want to combine all to create a 723 x 3127 x 254 matrix. I have tried loops but I am not sure how to write so that each file number is with 3 digits. Here is my attempt:
all = NaN(723,3127,254);
% attempt to put all arcs together..
for i=1:254;
for arc = 001:254;
all(:,:,i) = [TJJ_arc_(arc)]
end;
end;
After this I wish to calculate a nanmean to get 723 x 254...
Can someone help me?
2 comentarios
Azzi Abdelmalek
el 24 de Jul. de 2014
What type of files?
Michael
el 24 de Jul. de 2014
Respuesta aceptada
Más respuestas (1)
Michael
el 25 de Jul. de 2014
0 votos
Categorías
Más información sobre File Operations en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!