필터 지우기
필터 지우기

Sir, how to calculate Euclidean distance of two cell array having the size testdata 1 X 30 and traindata 1 X 50 of 10 person (8 images per person)

조회 수: 1 (최근 30일)
Sir, how to calculate Euclidean distance of two cell array having the size testdata 1 X 30 and traindata 1 X 50 of 10 person (8 images per person)

답변 (1개)

KSSV
KSSV 2018년 2월 7일
Read about pdist and pdist2.
  댓글 수: 2
Balaji M. Sontakke
Balaji M. Sontakke 2018년 2월 22일
Sir, Just I have used the function pdist2(traindata,testdata); here, testdata{p}=ext_finger(img,1); traindata{p}=ext_finger(img,1); testdata and traindata are cellarrays Sir, I would like to know that, pdist2 is used for calculating Euclidean distance from cell array.
Balaji M. Sontakke
Balaji M. Sontakke 2018년 2월 22일
I got following error
>> pdist2(testdata,traindata) Error using pdist2 (line 142) X and Y must have the same number of columns.
here, testdata having size 1 X 3 cell, traindata having size 1 X 8

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

카테고리

Help CenterFile Exchange에서 Statistics and Machine Learning Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by