title: translate matlab plot to gnuplot 3d
body: <p>I have a matrix of fft data over time, 8192 rows of data x 600 columns of time.  The first column is a frequency label, the first row is shown below but doesn't actually exist in the data file, neither do the spaces, they are shown just for ease of reading.</p>
  
  <pre><code>Frequency, Sec1, Sec2, Sec3...Sec600
  1e8,       -95,  -90,  -92
  1.1e8,    -100, -101, -103
  ...
  </code></pre>
  
  <p>It is plotted in matlab with the following code  <strong><em>(Apologies to other posters, I grabbed the wrong matlab code)</em></strong></p>
  
  <p>x is a matrix of 8192 rows by 600 columns, f is an array of frequency labels, FrameLength = 1, figN = 3</p>
  
  <pre><code>function [] = TimeFreq(x,f,FrameLength,figN)
  
  
   [t,fftSize] = size(x);
   t = (1:1:t) * FrameLength;
  
  figure(figN);
  mesh(f,t,x)
  xlabel('Frequency, Hz')
  ylabel('time, sec')
  zlabel('Power, dBm')
  title('Time-Freq Representation')
  </code></pre>
  
  <p>I cant quite figure out how to make it work in gnuplot.  Here is a sample image of what it looks like in Matlab: <a href="http://imagebin.org/253633" rel="nofollow">http://imagebin.org/253633</a></p>