title: Display how much line A differs from line B as maximum
body: <p>Working on a hobby project, I have a graph that I plot(A, B) various of times (using a script), sometimes only A exists which results in one line in the graph which is fine (when B is Nan). </p>
  
  <p><code>A</code> and <code>B</code> are of type matrix, both are <code>&lt;1x100 double&gt;</code></p>
  
  <p>What I want to do is to print out how much B exceeds A with the condition that B exceed A with &lt;= 5. The printout can be written outside the graph, it doesn't matter how it is presented as long as I can read it (can be in the graph or outside). In the same time I want to get the average difference between A and B in total. </p>
  
  <p>I would really appreciate the help, in this way I can see how things can be done in order to make more own stuff (i'm not good with tutorials).</p>
  
  <p><a href="http://i.stack.imgur.com/1Rm9E.gif" rel="nofollow">Example picture of how the graph looks like</a></p>