How to get my original x & y data from saved sfit?

18 ビュー (過去 30 日間)
Meh
Meh 2016 年 3 月 8 日
回答済み: Meh 2016 年 3 月 23 日
I have done curve fitting a few months ago. Saved my session as sfit. I lost my original X and Y data. Can I get the original x and y data from the sfit? I tried to Print the curve and Brush and export the points but I couldn't. Any help?

採用された回答

Titus Edelhofer
Titus Edelhofer 2016 年 3 月 8 日
Hi,
the .sfit is basically a .mat file. So you can load it:
v = load('yourfile.sfit', '-mat');
Depending on the number of fits this gives the data that were used in the fit:
[x,y] = v.savedSession.AllFitdevsAndConfigs{1}.Fitdev.FittingData.getCurveValues
Titus
  1 件のコメント
Meh
Meh 2016 年 3 月 23 日
Thanks. I did it once succesfully but later it is giving me error message
No appropriate method, property, or field getCurveValue for class sftoolgui.Data.

サインインしてコメントする。

その他の回答 (1 件)

Meh
Meh 2016 年 3 月 23 日
This one also produced what I wanted:
LineH = get(gca, 'Children');
x = get(LineH, 'XData');
y = get(LineH, 'YData');

カテゴリ

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