Library function logistic not found when using fit
조회 수: 13 (최근 30일)
이전 댓글 표시
I'm trying to fit a logistic function to my data:
x = 20:10:80;
y = [0, 0.0625, 0.5882, 0.8235, 0.9375, 1, 1];
According to the mathworks documentation (here and here), the fit function should be able to take 'logistic' as the model name. But when I run the function, I get this error
fitObj = fit(x',y', 'logistic');
Error using fittype>iCreateFromLibrary
Library function logistic not found.
I'm using Matlab 2023a, unless this has been updated in 2023b can somebody help me figure out what's going wrong please
댓글 수: 0
채택된 답변
Thomas
2023년 12월 19일
댓글 수: 1
Star Strider
2023년 12월 19일
If it’s not available, see List of Library Models for Curve and Surface Fitting to create it yourself.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Fit Postprocessing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!