question about multi variable data fitting
5 次查看(过去 30 天)
显示 更早的评论
Hi,
I am trying to do a simple two variable data fitting, using fittype:
g=fittype('a*exp(-(x-b)^2/c^2-(y-d)^2/f^2)','independent', {'x' 'y'});
However, everytime I run the program, error message says:
Error using internal.matlab.Message In 'curvefit:fittype:SameNameIndAndDepenVars', parameter {1} must be a scalar.
Error in message (line 11) msgObj = internal.matlab.Message(msgID,varargin{:});
Error in fittype>iTestCustomModelParameters (line 811) error(message('curvefit:fittype:SameNameIndAndDepenVars', obj.indep));
Error in fittype (line 355) iTestCustomModelParameters( obj );
Error in LED_roll (line 13) g=fittype('a*exp(-(x-b)^2/c^2-(y-d)^2/f^2)','independent', {'x' 'y'});
Please let me know where I did wrong here.
Thanks
0 个评论
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Linear and Nonlinear Regression 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!