Borrar filtros
Borrar filtros

how to solve the error in Lsqcurvefit

1 visualización (últimos 30 días)
Sou Fat
Sou Fat el 14 de Abr. de 2023
Respondida: Sou Fat el 14 de Abr. de 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 comentarios
Sou Fat
Sou Fat el 14 de Abr. de 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 el 14 de Abr. de 2023
So no more errors ?

Iniciar sesión para comentar.

Respuestas (1)

Sou Fat
Sou Fat el 14 de Abr. de 2023
Yes I didn't find the error thank you for your help

Categorías

Más información sobre Get Started with Optimization Toolbox en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by