title: MATLAB: How to ignore NaN values in the KMEDOIDS Function?
body: <p>I have multidimensional dataset with NaN values and my goal is to perform cluster analysis using k-medoids clustering algorithm. </p>
  
  <p>I use correlation as distance metric, but each time I run the function (kmedoids), only ~60% of data are assigned to a cluster due to missing data points.</p>
  
  <p>Is there an option to ignore NaN values and calculate correlation ignoring NaN values when there are at least 2 data points to compare? </p>
  
  <p>Interpolation is not appropriate method in this case. </p>