Undefined function for input arguments of type 'double' - fit function
23 次查看(过去 30 天)
显示 更早的评论
I'm running the following code:
close all
clear
clc
x = [0:0.01:1];
A=[0.0; 0.2; 0.4; 0.6; 0.8; 1.0];
B=[0.0; 0.034; 0.12; 0.267; 0.5; 1.0];
f=fit(A,B,'poly2')
But it results in the following error:
Undefined function 'fit' for input arguments of type 'double'.
Error in filename (line 68)
f=fit(A,B,'poly2')
I checked that the folder is in the correct path.
Help is appreciated.
0 个评论
采纳的回答
Guillaume
2018-12-23
Most likely you don't have the curve fitting toolbox installed or you don't have a license for it.
6 个评论
Georgios Tsimplis
2020-7-26
编辑:Georgios Tsimplis
2020-7-26
I did it !!!! it works! thanks for your help!
更多回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!