title: Operation in a cell array
body: <p>Good afternoon, </p>
  
  <p>I have a cell array with a lot of multiband images (6 bands for each image). 
  My multidimensional array is called 'D' and have two columns: the first one with the name of the images and the second one with the image file (with the row, band...). First of all, I want to transform it in double format (now it's uint16) with the following code, but I receive the following error "??? Error using ==> double Too many input arguments."</p>
  
  <pre><code>D= double(C{:,1});
  </code></pre>
  
  <p>And then, I have that values:</p>
  
  <pre><code>a1=1957 
  a2= 1900 
  a3= 1554 
  a4=1036 
  a5=215 
  a6=80 
  </code></pre>
  
  <p>And what I'm trying to do is create a loop (I'm simplifying the question) because I need to do the same operation on every band of the images. The code looked like this: </p>
  
  <pre><code>for k = 1:band(D{:,1})
      band1= D(:,:,1);
      band2= D(:,:,2);
      ...
      band1*a1=output1
      band2*a2=output2
  end 
  </code></pre>
  
  <p>But I really don't know how to express that. Really thanks in advance</p>
  
  <hr>
  
  <p>On each line of the cell array, there's a multiband image. This is the way I've created:</p>
  
  <pre><code>fileNames = dir(fullfile(myPath, '*.tif'));
  C = cell(length(fileNames), 2);
  for k = 1:length(fileNames)
      filename = fileNames(k).name;
      C{k, 1} = filename;
      C{k, 2} = imread(filename);
  end
  </code></pre>