Undefined function 'fit' for input arguments of type 'double'.
22 次查看(过去 30 天)
显示 更早的评论
I have already downloaded curve fitting toolbox
as when i type
which fit
is returned
C:\Program Files\MATLAB\R2019b\toolbox\stats\stats\@gmdistribution\fit.m % gmdistribution method
but when i am trying to implement 'fit' function even in the following simple exampe i have an error
x=[1;4;10];
y=[2;4;6];
a=fit(x,y,'poly1');
and the error i have is:
>> Untitled
Undefined function 'fit' for input arguments of type
'double'.
Error in Untitled (line 3)
a=fit(x,y,'poly1');
0 个评论
回答(1 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!