フィルターのクリア

Extract the data vectro from cftool

1 回表示 (過去 30 日間)
Manolis Michailidis
Manolis Michailidis 2015 年 10 月 10 日
編集済み: Manolis Michailidis 2015 年 10 月 12 日
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 Center および File ExchangeGet 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