title: 3D plot of temperature distribution
body: <p>I have a T matrix of 7x5x4 that I got from a script that I run. My ultimate goal is to plot a 3D plot that shows the temperatures in all sides of the cube, and if I can I want to get a view of the internal temperatures as well. However, for now I will be happy if I can get the temperature distribution view on any plane (lets say on the plane (i,j,1)). I am running the below code but I get the error:</p>
  
  <p>Data dimensions must agree</p>
  
  <p>Please help me with this issue</p>
  
  <pre><code>DX=0.1; % step size
  DY=0.1;
  DZ=0.1;
  Lx= 0.6; %length along x-axis in m
  Ly=0.4;   %length along y-axis
  Lz=0.3;   %length along z-axis
  X=0:DX:Lx;
  Y=0:DY:Ly;
  Z=0:DZ:Lz;
  [xx,yy,zz]=meshgrid(X,Y,Z);
  figure
  surf(xx,yy,T(:,:,1));
  </code></pre>