필터 지우기
필터 지우기

concatenation of multiple .mat file into one matrix

조회 수: 1 (최근 30일)
maha lakshmi
maha lakshmi 2013년 2월 21일
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.

답변 (2개)

Walter Roberson
Walter Roberson 2013년 2월 21일

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

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by