<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Hello Erhy,<br>
      <br>
      Le 24/03/2017 à 20:36, Erhy a écrit :<br>
    </div>
    <blockquote cite="mid:1490384202470-4035989.post@n3.nabble.com"
      type="cite">
      <pre wrap="">Hello!
Again a basic question.
e.g.
A =  [ 1 2 3 ];
I = find( A > 10);
if length(I) > 0 then
        I = I + 1;
end

Is there a alternative
*without the if ?*</pre>
    </blockquote>
    <br>
    Yes, just:<br>
    <tt>I = I + 1
    </tt><br>
    The if is useless:<br>
    <ol>
      <li><tt>length(I)==0 means I==[] and then I+1 == []+1 ==[]  as if
          nothing was done</tt></li>
      <li><tt>otherwise, just add 1</tt></li>
    </ol>
    <blockquote cite="mid:1490384202470-4035989.post@n3.nabble.com"
      type="cite">
      <pre wrap="">I miss the .+ operator.</pre>
    </blockquote>
    <br>
    So do i, sometimes.<br>
    <br>
    Samuel<br>
    <br>
  </body>
</html>