Undefined function for input arguments of type 'double' - fit function
26 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Jochem
am 23 Dez. 2018
Kommentiert: madhan ravi
am 26 Jul. 2020
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 Kommentare
Akzeptierte Antwort
Guillaume
am 23 Dez. 2018
Most likely you don't have the curve fitting toolbox installed or you don't have a license for it.
6 Kommentare
Georgios Tsimplis
am 26 Jul. 2020
Bearbeitet: Georgios Tsimplis
am 26 Jul. 2020
I did it !!!! it works! thanks for your help!
Weitere Antworten (1)
Siehe auch
Kategorien
Mehr zu Introduction to Installation and Licensing finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!