title: How to get the cluster numbers for each data point when using dendrogram function MATLAB
body: <p>I would like to know if there are commands to get the cluster to which  a data point belongs to while generating dendrogram.</p>
  
  <p>For example, if the datapoints 32,46,26,15,33,54,17,19,27 are grouped as one cluster, how to obtain this information while plotting dendrogram.</p>
  
  <p>I computed the linkage function and plotted the dendrogram using the command:</p>
  
  <p><code>[H,T,perm]=dendrogram(Z,0)</code> (Since I have more than 30 data points)</p>
  
  <p>Any suggestions on how to extract the cluster information for the example mentioned above will be helpful.</p>
  
  <p>I would like to use the cluster information for visualization purpose.</p>
  
  <p>Thank you.</p>