title: Matlab - Plot values from vectores with mutiple conditions
body: <p>I have my values here:  </p>
  
  <pre><code>x=[0.125  0.250  0.375  0.500  0.625  0.750  0.875 1.000  1.125  1.250  ...]  
  y=[4.1  4.6  4.3  4.4  4.8  4.6  4.3  4.9 4.1  4.2 ...]  
  </code></pre>
  
  <p>Then I want all the values <code>&gt;4.5</code> <strong>but</strong>:</p>
  
  <ul>
  <li>If I have an isolated value it should be discarded;</li>
  <li>If I have an isolated value but it is surrounded by two values <code>&gt;4.5</code>, then it should count.</li>
  </ul>
  
  <p>So the result should be:    </p>
  
  <pre><code>xx=[0.625  0.750  0.875 1.000  ...]
  yy=[4.8  4.6  4.3  4.9  ...]
  
  plot(x,y,'g',xx,yy,'k')
  </code></pre>