title: How do I plot a 3D graph in 2D with color in octave?
body: <p>I have a function z=f(x,y) and want to plot it using octave, but don't want the plot to be in 3d, as in</p>
  
  <pre><code>octave:1&gt; x=(1:300);
  octave:2&gt; y=(1:300);
  octave:3&gt; [xx,yy]=meshgrid(x,y);
  octave:4&gt; A=sin(xx/100).*yy;
  octave:5&gt; mesh(x,y,A)
  </code></pre>
  
  <p>but rather in 2d using colors for the values of z, like what you get using the gnuplot instruction</p>
  
  <pre><code>gnuplot&gt; plot 'a.txt' matrix w image
  </code></pre>
  
  <p>if I save the matrix A in the file a.txt. The closest I have found is the command contourf, but the as you can see if you try it,</p>
  
  <pre><code>octave:7&gt; contourf(xx,yy,A)
  </code></pre>
  
  <p>the result is far from optimal... Any suggestion?</p>
  
  <p>Thanks</p>