I tried to follow the "Analyzing Datasets" example in the tutorial section, but whenever I ran
[B,lam] = fitbackground(V,t,@td_exp);
I received the following error message:
Invalid solver specified. Provide a solver name or handle (such as
'fmincon' or @fminunc).
After some digging around it turned out, that I did not have the Optimization Toolbox installed. However, the error message insinuated that I had not set the paths correctly.
Suggestion: Test for availability of Optimization Toolbox with
I tried to follow the "Analyzing Datasets" example in the tutorial section, but whenever I ran
I received the following error message:
After some digging around it turned out, that I did not have the
Optimization Toolbox
installed. However, the error message insinuated that I had not set the paths correctly.Suggestion: Test for availability of
Optimization Toolbox
withwhich returns
1
if the toolbox is installed.