Filter löschen
Filter löschen

Extract the data vectro from cftool

1 Ansicht (letzte 30 Tage)
Manolis Michailidis
Manolis Michailidis am 10 Okt. 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.

Akzeptierte Antwort

Manolis Michailidis
Manolis Michailidis am 12 Okt. 2015
Bearbeitet: Manolis Michailidis am 12 Okt. 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

Weitere Antworten (0)

Kategorien

Mehr zu Get Started with Curve Fitting Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by