fittype input argument error
1 view (last 30 days)
Show older comments
Hi I am trying to run a code to fit a curve to some data. The code works on a colleagues version of Matlab. When I try to define the fittype using:
g = fittype( @(a, b, c, x) c*(x-a).*exp(-0.5*((x-a)/b).^2), ... 'independent', {'x'});
I get the following error:
Error using fittype (line 212) First input argument must be a string or cell array.
Any help greatly appreciated.
0 Comments
Answers (0)
See Also
Categories
Find more on Linear and Nonlinear Regression in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!