title: Plot heat conduction temperature at various radii with Matlab
body: <p>I have an array in Matlab that is updated for every time step: each row corresponds to a time and each column represents a temperature at a certain radius from the center. It would also be handy if a color gradient could be applied to the plot using the <code>meshgrid</code> and <code>contourf</code> commands.  So far, this is the Matlab code that I have, but I am not sure how to get the temperature into the plot and animate the change in temperature.</p>
  <pre><code>Tinf = 200;  % ambient temperature
  
  % where r1 = radius1, r2 = radius2, etc.
  %        t = time
  %        rows = time
  %        columns = radius
  
  %    r1   r2    r3    r4    r5
  T = [98   105   110   118   128;  % t=1
       109  110   117   124   134;  % t=2
       110  118   120   130   144]; % t=3
  
  r = 0.08;  % radius of circle
  
  rx = -r:0.01:r;
  ry = r:-0.01:-r;
  
  [x_coor, y_coor] = meshgrid(rx, ry);
  
  radius = sqrt(x_coor.^2+y_coor.^2);
  
  figure(1)
  contourf(radius,'edgecolor','none')
  </code></pre>
  <p>I am trying to create a circular plot in Matlab that would show the temperature (color) at each radius and animate that temperature (change color) as it increases or decreases with time.</p>
  <p>An example of such a plot at a certain time would be:</p>
  <p><img src="https://i.stack.imgur.com/P8OSf.png" alt="radius temperature" /></p>
  <p>So column 1 in the T array corresponds to node 1 in the picture, column 2 corresponds to node 2, etc.  Thus at time = 0 then node1 = 98, node2 = 105, node3 = 110, node4 = 118, node5 = 128; at time = 1 then node1 = 109, node2 = 110, node3 = 117, node4 = 124, node5 = 134; and so on.</p>
  <p>Any suggestions to accomplish such a plot would be very helpful.</p>