johnweeks You need to re-name the fit curve after each fit. Something like this (I wrote this right here, and it is not tested or even compiled): Variable i=0 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 Log in or register to post comments July 10, 2014 at 11:52 am - Permalink
Supriya Balaji Thanks John ! That worked splendidly Log in or register to post comments July 11, 2014 at 09:31 am - Permalink
John Weeks
WaveMetrics, Inc.
support@wavemetrics.com
July 10, 2014 at 11:52 am - Permalink
July 11, 2014 at 09:31 am - Permalink