필터 지우기
필터 지우기

How to calculate euclidean distance to a loaded dataset.?

조회 수: 2 (최근 30일)
NAVEEN KUMAR
NAVEEN KUMAR 2017년 4월 26일
편집: Andrew Newell 2017년 4월 27일
Sir, I have the data of 401*22double and we have to find the euclidean distance for that dataset.my dataset consists of 401 images with 22 features using pdist2 function.
  댓글 수: 5
Jan
Jan 2017년 4월 27일
There is no need for the 2 loops, because the body of the loop does not depend on x and y.
D = pdist2(sam',data');
This looks like it could do what you want. So what is the problem?
NAVEEN KUMAR
NAVEEN KUMAR 2017년 4월 27일
I do have a training data and a query image data, i need to check whether the query data is available in training or not, if available the query image data in training data should replace with zero so that it can match my query data....it is my problem?

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

답변 (0개)

카테고리

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