concatenation of multiple .mat file into one matrix
Mostrar comentarios más antiguos
sir,I have calculated the feature vector for 1000 images,my feature vector size for one image is <1x120>,how to concatenate 1000 .mat file into one for the retrieval of query image from the database.
Respuestas (2)
Walter Roberson
el 21 de Feb. de 2013
0 votos
Thorsten
el 21 de Feb. de 2013
d = dir('*.mat');
Xall = nan(120, 1000);
for i = 1:length(d)
load(d(i).name)
Xall(:, i) = X; % assuming that the 1x120 vectores are stored in X
end
2 comentarios
maha lakshmi
el 22 de Feb. de 2013
Walter Roberson
el 22 de Feb. de 2013
Please read the documentation for the dir() command.
Categorías
Más información sobre Creating and Concatenating Matrices en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!