I used the following function to save curve fit results. I get a warning that fitresult and gof input variables are not used. If I replace these with ~ the function will not work. How can I silence the warning? I am using MATLAB R2014a. Thanks.
function SaveCurveFit(option, fitresult, gof) switch option case 1 % North Region
save ('NorthDailyFit','fitresult','gof'); case 2 % Central Region
save ('CentralDailyFit','fitresult','gof'); case 3 % South Region
save ('SouthDailyFit','fitresult','gof'); end; end;
Best Answer