Filter löschen
Filter löschen

How to calculate euclidean distance to a loaded dataset.?

2 Ansichten (letzte 30 Tage)
NAVEEN KUMAR
NAVEEN KUMAR am 26 Apr. 2017
Bearbeitet: Andrew Newell am 27 Apr. 2017
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 Kommentare
Jan
Jan am 27 Apr. 2017
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 am 27 Apr. 2017
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?

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Statistics and Machine Learning Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by