title: Using input dialog boxes in Matlab
body: <p>Suppose I have a function that is something like this:</p>
  
  <pre><code>function [ c ] = input_args(m)
  
  for i = 1 : m+1
  
      c{i} = inputdlg('Enter next m value');
  
  end
  
  end
  </code></pre>
  
  <p>Now I'd like to change this so that the instruction to the user at the i'th stage of the for loop says something like "Enter the i'th m value", where <code>i</code> is the changing index in the for loop. How can I do this?</p>
  
  <p>Thanks!</p>