필터 지우기
필터 지우기

how to solve the error in Lsqcurvefit

조회 수: 1 (최근 30일)
Sou Fat
Sou Fat 2023년 4월 14일
답변: Sou Fat 2023년 4월 14일
hi guys
i need help for the error i got it , with the function lsqcurvefit, i don't know exactely how to solve this probleme.
Thank you,
this is my script:
clear all
clc
load('RCS1190_460A.mat')
xdata=Times;
i=460
%% RCS1190_460A %%%%%%%%%%%%%%%%%ù
ydata= QC_plusC-45;
fun=@(x,xdata)((x(1)./x(2)).*( 1- (exp(-(x(2)).*xdata))))
x0=[2,1]
x=lsqcurvefit(fun,x0,xdata,ydata)
  댓글 수: 13
Sou Fat
Sou Fat 2023년 4월 14일
I rectified in the tebalu that it misses a value I rectified it then I verified the two any(isnan(fun(x0,xdata)))
any(isinf(fun(x0,xdata))) and fo ydata which return 0
Torsten
Torsten 2023년 4월 14일
So no more errors ?

댓글을 달려면 로그인하십시오.

답변 (1개)

Sou Fat
Sou Fat 2023년 4월 14일
Yes I didn't find the error thank you for your help

카테고리

Help CenterFile Exchange에서 Get Started with Optimization Toolbox에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by