title: Operations with function handle in matlab
body: <p>Could you please help me with the following issue: I have the following function handle:</p>
  
  <pre><code>r1 = @(lambda) b + lambda*(r - b); % r and b are vectors of return data
  </code></pre>
  
  <p>I want to find the optimal lambdas that set me a mean function to zero, for a given set of powers within that function. What I tried to do and didn't work, as it returns me an error for undefined operators for input arguments of type 'function_handle' is:</p>
  
  <pre><code>lambda0 = 0.3;
  for a = 2:10    %power coefficient
  S1(a) = fzero(mean((r - b)*r1.^(1/(a - 1))),lambda0);
  end
  </code></pre>
  
  <p>Any suggestion as to how to go about this problem is highly appreciated! Thank you in advance.</p>