title: Cell Array and function handle
body: <p>Look at the below code:</p>
  
  <pre><code>for i=1:2
  if i == 1
      F{i}= @(x) x(i)+x(i+1);
  else
      F{i}= @(x) x(i-1)-x(i)+2;
  end
  end
  </code></pre>
  
  <p>I wanted to have stored in F something like <code>F={@(x) x(1)+x(2);@(x) x(1)-x(2)+2;}</code>. How should I edit my code to achieve this? Can anyone help me?</p>