Effacer les filtres
Effacer les filtres

how to solve the error in Lsqcurvefit

1 vue (au cours des 30 derniers jours)
Sou Fat
Sou Fat le 14 Avr 2023
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 commentaires
Sou Fat
Sou Fat le 14 Avr 2023
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 le 14 Avr 2023
So no more errors ?

Connectez-vous pour commenter.

Réponses (1)

Sou Fat
Sou Fat le 14 Avr 2023
Yes I didn't find the error thank you for your help

Catégories

En savoir plus sur Get Started with Optimization Toolbox dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by