title: constraining values to a range in an array
body: <p>I can limit an array to values less than or greater than using individual values but how can I limit an array of values to a specific range.</p>
  
  <p>Example snippet of code below:</p>
  
  <pre><code>arrayphase_sort=sortrows(arrayphase,4); %sort by phase in deg low to high
  arrayphase_sort_limit_idx=arrayphase_sort(:,4)&lt;45;% idx to limit array to phase angles under 45 degree
  arrayphase_sort_limit=arrayphase_sort(arrayphase_sort_limit_idx,:); %limit array to phase angles under 45 degree
  </code></pre>
  
  <p>but I tried adding &amp;>10 to see if I could get the array to show everything greater than 10 and less than 45 example below: (but I get an error)</p>
  
  <pre><code>arrayphase_sort_limit_idx=arrayphase_sort(:,4)&lt;45**&amp;&gt;10**;
  </code></pre>
  
  <p>I know it's a syntax issues but I'm not sure the proper syntax.
  Any idea the proper syntax to accomplish what I'm trying to do.</p>
  
  <p>Thanks</p>