Filter löschen
Filter löschen

concatenation of multiple .mat file into one matrix

1 Ansicht (letzte 30 Tage)
maha lakshmi
maha lakshmi am 21 Feb. 2013
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.

Antworten (2)

Walter Roberson
Walter Roberson am 21 Feb. 2013

Thorsten
Thorsten am 21 Feb. 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 Kommentare
maha lakshmi
maha lakshmi am 22 Feb. 2013
In load(d(i).name) can you please tell what does 'name' represents.
Walter Roberson
Walter Roberson am 22 Feb. 2013
Please read the documentation for the dir() command.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Creating and Concatenating Matrices finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by