title: How To Put String Labels on Contours for Contour Plots in MATLAB
body: <p>I am wondering if it is possible to label the contours of a MATLAB contour plot with a set of user-defined strings?</p>
  
  <p>I am currently using the following code snipper to produce a labelled contour plot:</p>
  
  <pre><code>%Create Data
  X = 0.01:0.01:0.10
  Y = 0.01:0.01:0.10
  Z = repmat(X.^2,length(X),1) + repmat(Y.^2,length(Y),1)';
  
  %Create Plot 
  hold on
  [C,h] = contourf(X,Y,Z);
  
  %Add + Format Labels to Plot
  hcl = clabel(C,h,'FontSize',10,'Color','k','Rotation',0);
  set(hcl,'BackgroundColor',[1 1 1],'EdgeColor',[0 0 0],'LineStyle','-',)
  hold off
  </code></pre>
  
  <p>The issue with this code is that the labels are automatically generated by MATLAB. Even as I can easily change the contours that are labels, I cannot change the labels that they get. </p>
  
  <p>Ideally, I would like to label them with a set of strings that I define myself. However if that is not possible, then I am wondering if it is possible to change the numeric format of the labels. The reason for this is that the code above actually produce a contour plot for an error rate, which I would like to display as a % value (i.e. use 1% in the contour label, instead of 0.01 etc.). </p>