How To Loop Array with Two Samples in Matlab?
<p>I would like to take two constants from the array <code>constants</code> at a time because I do not want to go one by one these constants through because it is time consuming; instead, I compare the changes what they cause and only react if there is a big change between the effects of two constants. 
I am looping one sample <code>constant</code> in the array <code>constants</code> at a time in Matlab 2016a</p>

<pre><code>constants=[45 90 180 360 720 1440 2880 5760]';
for constant=constants

...

end
</code></pre>

<p>However, I would like to take two constants at a time by one loop, like pseudocode</p>

<pre><code>for constant1,constant2=constants

...

end
</code></pre>

<hr>

<p>How can you take two constant(s) from <code>constants</code> in one for loop of Matlab?</p>