title: Double for loop, how to set non-continuous index?
body: <p>If I want to construct a double for loop, but for <code>index k</code> I don't want it to be continuous index but like [1,2,4,7]. I tried to do the following, and it did not work.</p>
  
  <pre><code>for i=1:100
      for k=1:2:4:7;
          b(i)=i*k;
      end
  end
  </code></pre>
  
  <p>Anyone could help me deal with that?</p>