I am using pdist
to calculate euclidian distances between three dimensional points (in Matlab). However i have some coordinates that i cannot remove from the matrix, but that i want pdist
to ignore.
I have tried overwriting the values i want to ignore with NaN
's, but pdist
still uses them in the calculation. Is there a way to make pdist ignore a value in it's process?