title: How to assign an object in a loop
body: <p>Matlab code:</p>
  
  <pre><code>% Performs Inner Filter Calculation using the UV absorbance spectrum.
  ex_abs=absint(exabsstart:exinc:exabsend,:);
  em_abs=absint(emabsstart:eminc:emabsend,:);
  for i=1:length(em_abs)
      for j=1:(length(ex_abs))
          IFC(i,j)=ex_abs(j)+em_abs(i);
      end
  end
  Aci = A.*10.^(0.5*IFC); %This is the IFC.  
  Warning: Integer operands are required for colon operator when used as index 
  Undefined function or variable 'IFC'.
  </code></pre>
  
  <p><code>IFC</code> is not being defined in the for loop, and code stops at <code>Aci =</code> statement (since <code>IFC</code> is not defined). Is there any way to define <code>IFC</code> in the loop?  </p>