title: How to write a for loop as a condition of a while loop in MATLAB?
body: <p>First of all, I am really new to MATLAB so I'm not sure how to create multiple concurrent conditions for executing a while loop. I have a1(i)x + a2(i)y ≤ b(i) for i = 1, . . ., 16 and when this statement is true, it will execute, for example x=x+1. I have tried to code for that idea:</p>
  <pre><code>while (for i=i:16
        a1(i)*x + a2(i)*y &lt; b(i);
         end)
     x=x+1;
  end
  </code></pre>
  <p>But of course, that code is wrong, I just want to make the whole for loop as the condition of the while loop. So how can I fix my code to do that? Thank you!</p>