title: Matlab for loop with decreasing loop counter
body: <p>this for is not working and I can figure out why, can you help me?</p>
  
  <pre><code>for l = (300:1:-1)
      gauss = fspecial('gaussian',[1 round(1+0.15*l)], 0.015*l);
      filter_g(l,:,1) = filter2(gauss, img_d(l,:,1));
      filter_g(l,:,2) = filter2(gauss, img_d(l,:,2));
      filter_g(l,:,3) = filter2(gauss, img_d(l,:,3));
  
  end
  </code></pre>