title: MATLAB Matrix step plot
body: <p>I have this problem that I should plot a step plot from a matrix. For example:</p>
  
  <pre><code>[0    0    10    20    50;
  
   50   100  100   300   50] 
  </code></pre>
  
  <p>The second line should be the x-axis so there would be points at 50, 150, 250, 550 and 600. And the according y-values should be 0, 0, 10, 20 and 50. The function stairs(B(1,:)) gives me a step plot but it's someway off. I'd appreciate the help!</p>