Borrar filtros
Borrar filtros

Extract the data vectro from cftool

1 visualización (últimos 30 días)
Manolis Michailidis
Manolis Michailidis el 10 de Oct. de 2015
Editada: Manolis Michailidis el 12 de Oct. de 2015
Hello, i have performed curve fitting with cftool , but i cannot accomplish to extract the smoothed data as vector. Instead i can see the plot and it's ok , also i get an cfit object that contains the parameters for the ploting my disered data. So is there any possible way to extract my new data and not the graph? thank you.
P.S. I tried with feval function but i don't get the vector.

Respuesta aceptada

Manolis Michailidis
Manolis Michailidis el 12 de Oct. de 2015
Editada: Manolis Michailidis el 12 de Oct. de 2015
For everyone having the same issue i found a bypass way. Although after i plot the data and when i zoom in i can see clearly the data is taken approximatelly, but that is not always the case, it depends. The idea is this: when you have done your smothing fitting curve just plot it, and then exract the data from x-axis and y-axis , like this:
fnplt(pp); %// the pp is an object and NOT vector or data
h = findobj(gca,'Type','line');
X_DATA=get(h,'Xdata'); %// the x-axis vector smoothed data
Y_DATA=get(h,'Ydata'); %// the y-axis vector smoothed data

Más respuestas (0)

Categorías

Más información sobre Get Started with Curve Fitting 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