フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

hi i hav euclidean distance of top 5 images. testdata1 is excell sheeet havin feature veator of query images and testdata 2 contains 38 db images feature vector ..how i can display top 5 images??

1 回表示 (過去 30 日間)
preeti
preeti 2014 年 12 月 4 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
b1=xlsread('testdata.xlsx') b=xlsread('testdata2.xlsx') for i=1:38 sum=0; for j=1:9 g = (b(j) - b1(i,j))^2 sum=sum+g end
E_distance = sqrt(sum) %x(i)=sum; distance(i)= E_distance disp('E_distance=') disp(E_distance); end
smallest=min(distance) disp('smallest=') [smallest,I] = min(distance)
answer=sort(distance);
disp('top five images');
for i=1:5
disp(answer(i));
end

回答 (0 件)

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by