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!