Help to optimize two parameters to model the response of a photodiode

Hi.
I have a vector M with experimental results and a vector S(t,k) with simulated results. S is the theoretical response of a photodiode and M is the measured response. By varying the two parameters t and k I want to make S=M. Or at least find the best values for t and k to approximate S=M. I want to use the optimization toolbox but I can't figure it out.
thanks b

Answers (1)

doc lsqnonlin % and friends

1 Comment

"friends" would include, notably, LSQCURVEFIT which is a more specialized version of lsqnonlin for minimizing error functions of the form
Error(x) = response(x)-measurements

Sign in to comment.

Asked:

on 7 Nov 2013

Commented:

on 7 Nov 2013

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!