Fitting a Custom Sigmoid
Mostrar comentarios más antiguos
Hello,
I have a set of data that decays in a sigmoidal fashion. I believe it should be a good fit to a function of the form shown in the first screenshot, but when I use the Custom Fit feature in the Curvefitting App matlab gives a -Rsq so something is clearly going wrong. I have attached a screenshot of the attempted fit and result as well. I would really appreciate any advice or input as to why this may not be working and alternatives I could try.
Thank you!


3 comentarios
Image Analyst
el 26 de Ag. de 2020
Editada: Image Analyst
el 26 de Ag. de 2020
OK, but you forgot to attach your data. I'll check back later for it.
Why don't I get that plot:
% Create the X coordinates from 0 to 16 every 0.25 units.
X = 0 : 0.25 : 16;
% Define coefficients and function that the X values obey.
a1 = 0.9157 % Arbitrary sample values I picked.
a2 = 0.6557
Y = a1 * exp(-a2 .* exp(X)); % Get a vector. No noise in this Y yet.
plot(X, Y, 'b.-', 'LineWidth', 2, 'MarkerSize', 20);
grid on;

Jane Kelleher
el 26 de Ag. de 2020
Editada: Jane Kelleher
el 26 de Ag. de 2020
Jane Kelleher
el 26 de Ag. de 2020
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Smoothing en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!




