title: How can I change the color of a font with function text( ) in Matlab?
body: <pre><code>marker={'r','b','g'};
  for i=1:size(X,3)
      for r=1:size(X,1)
          for c=1:size(X,2)
              text(X(r,c,i),Y(r,c,i),Z(r,c,i),num2str(dof(c,r,i)))
          end
      end
  end
  </code></pre>
  
  <p>For each value of <code>i</code>, I want to use a different color as given in <code>marker</code> to plot <code>num2str(dof(c,r,i))</code>. How can I do that? Thanks.</p>