Extract the data vectro from cftool

1 次查看(过去 30 天)
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.

采纳的回答

Manolis Michailidis
Manolis Michailidis 2015-10-12
编辑:Manolis Michailidis 2015-10-12
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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Get Started with Curve Fitting Toolbox 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by