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

조회 수: 56 (최근 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 CenterFile Exchange에서 Fit Postprocessing에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by