title: adapting the size of a function iteratively in matlab/ convert string to function
body: <p>I want to convert a string which is in a <code>cell</code> (<code>size 2*len(x) × 4</code>) into a function handle <code>f=@(x) F</code>.</p>
  
  <p>The first line of <code>F</code> is</p>
  
  <pre><code>'x(1)'   'cos(2*pi*'  'F(1)'  '*1/Fe)' 
  </code></pre>
  
  <p>The following lines are similar but the input of <code>x</code> is counting up. <code>Fe</code> and <code>F</code> are actually variables.
  The size of the matrix F depends on the length of the vector x. It should be <code>2*len(x) x 1</code></p>
  
  <p>Is this possible?</p>
  
  <p>What I actually wanted to do is to write a function which size changes dependent on the size of the vector <code>x</code>. The only way I saw to adapt the size was to introduce the string. </p>