Saving the Fit data
Supriya Balaji
While running a fit function repeatedly on subsets of a dataset, the fit curve is shown only on the last subset of the data because everytime the fit values are updated. How do I make sure every fit is saved and displayed?
TIA !
String ydataname = NameOfWave(ydatawave)
do
FuncFit ...
String newname = "fit_"+ydataname+num2str(i)
Wave w = $newname
if (WaveExists(w))
Duplicate/O $("fit_"+ydataname), $(newname)
else
Rename $("fit_"+ydataname), $(newname)
endif
i += 1
while(no more fits to do)
John Weeks
WaveMetrics, Inc.
support@wavemetrics.com
July 10, 2014 at 11:52 am - Permalink
July 11, 2014 at 09:31 am - Permalink