MATLAB: Saving a file with help of a function

filefunctionMATLABsave

Hi! is there any possibilty to change the name of the file to be saved with the input of a function? as an Exemple:
%
[]=myfunction(input1,input2,FileName)
Calculation of X,Y
S=struct('X',X,'Y',Y); % building of a structure
save('FileName','S')
Thank you

Best Answer

addition(1,2,'Resultdata1.mat')
Related Question