transform cfit (fitted data) into a numeric data array
83 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
sermet OGUTCU
el 18 de Feb. de 2021
Respondida: Vinnie Pepi
el 18 de Feb. de 2021
f=fit(x,y,'linearinterp');
I need to save f fitted numeric data from the original data into a different array such as;
fitted_data=f
How I can transform cfit type of fitted data to the numeric (double) fitted data?
0 comentarios
Respuesta aceptada
Vinnie Pepi
el 18 de Feb. de 2021
If I understand your question, it looks like you want to get the fitted data as an array of doubles.
According to this documentation:
You can supply the fit with a range of values that you are looking for like so:
xi = (2000:10:2050).';
fitted_data = f(xi)
Hope this helps.
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Statistics and Machine Learning Toolbox en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!