function filename = getFilename(inputfile,mode,cv,nonlin,smoothed)
switch mode
    case 1
        modename = 'both'
    case 2
        modename ='vca';
    case 3
        modename='lopass'
    otherwise
        modename=0;
end
if nonlin == "false"
    nonlinname = ' ';
else
    nonlinname = 'nonlinear';
end
if smoothed == "false"
    smoothedname = 'PD model';
else
    smoothedname = 'smoothed model';
end  

filename = strcat(inputfile(1:end-4)," ",modename, " ", cv, " ",nonlinname," ",smoothedname);
filename = convertStringsToChars(filename);