title: Drawing a surface plot in Matlab similar to one obtained using Gnuplot?
body: <p>Update:</p>
  
  <p><a href="http://www.mediafire.com/?tvt2agha0i42i9f" rel="nofollow noreferrer">Link</a> to my test dataset </p>
  
  <p>I have some data like this:</p>
  
  <pre><code>10.0 11.0 0.5
  10.0 12.0 0.5
  10.0 14.5 0.5
  10.0 16.0 0.5
  10.0 18.5 0.5
  10.0 19.0 0.5
  10.0 19.5 0.5
  10.0 20.0 0.5
  </code></pre>
  
  <p>Using Gnuplot, I could plot the following picture:</p>
  
  <p><img src="https://i.stack.imgur.com/bzpe9.jpg" alt="enter image description here"></p>
  
  <p>using the following script I wrote:</p>
  
  <pre><code>set data style lines
  set surface
  set dgrid3d 30,30
  set hidden3d
  set ticslevel 0.8
  set isosample 40,40
  
  set view 60, 30, 1, 1
  set contour base
  
  splot "dataset" using 2:1:($3) notitle
  </code></pre>
  
  <p>I am trying to do some analysis on this graph so wanted to get this into Matlab but am not sure how to draw this. I tried importing the dataset into Matlab and this is how far I could get. I am loading the file and plotting using the following Matlab statements:</p>
  
  <pre><code>load data
  rangeY = floor(min(data(:,2))):.5:ceil(max(data(:,2)))
  rangeX = floor(min(data(:,1))):.5:ceil(max(data(:,1)))
  [X,Y] = meshgrid(rangeX,rangeY)
  Z = griddata(data(:,1),data(:,2),data(:,3),X,Y, 'cubic')
  surf(X,Y,Z)
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/DQ06z.jpg" alt="enter image description here"></p>
  
  <p>The picture looks quite different to me (axis range, shape etc.) Can someone tell me how to get a plot similar to the one I obtained through Gnuplot? </p>