concatenation of multiple .mat file into one matrix
조회 수: 2 (최근 30일)
이전 댓글 표시
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.
댓글 수: 0
답변 (2개)
Thorsten
2013년 2월 21일
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
참고 항목
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!