Borrar filtros
Borrar filtros

How to reproduce the example figure using lsqcurvefit

1 visualización (últimos 30 días)
yp78
yp78 el 29 de Sept. de 2021
Editada: yp78 el 1 de Oct. de 2021
Hi, I am trying to follow this example for non-linear curve fitting.
Looking at the section 'Splitting the Linear and Nonlinear Problems', I understood upto the point how to estimate two exponents lambda1 & 2 (line 51). However, I don't understand how to recover the estimate for 'c' to produce the 'Global fit' in the last figure in the following section.
More specifically, once I obtain the unknown lambdas, what should I do to obtain the unknown vector 'c' (in the function 'fitvector')? Which of the followings would be the right approach?
  1. c=A \ ydata
  2. c=A \ yEst, or
  3. Once obtained the estimates for lambda, I follow the full parameter estimation using the lambdas.
Thanks in advance for your help!

Respuestas (1)

Mathieu NOE
Mathieu NOE el 29 de Sept. de 2021
hello
well, if the question is only about how to use lsqcurvefit, my answer is not gotta help you because I'm using either fminsearch , or , much better and more robust to crude / bad initial guess : Fminspleas - File Exchange - MATLAB Central (mathworks.com)
see the two examples attached if it helps you
all the best
  6 comentarios
yp78
yp78 el 30 de Sept. de 2021
Editada: yp78 el 1 de Oct. de 2021
Hi Mathieu,
Thanks again for the helpful example files! I wrote the author of the function to ask about the multivariate usage of the function. When I had a reply, I will share the information with you :)
Mathieu NOE
Mathieu NOE el 30 de Sept. de 2021
Good idea , that would for sure interest me as well !

Iniciar sesión para comentar.

Categorías

Más información sobre Linearization en Help Center y File Exchange.

Productos


Versión

R2012b

Community Treasure Hunt

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

Start Hunting!

Translated by