I'am working on GUI and have a file named 'work.mid' .I made some applications on it and want to save it as 'work1.mid' when I click the save button automatically to 'c:\saved_datas\. And when I click that button second time, I want to save it as 'work2.mid', on the third time 'work3.mid' etc. The function must work like that on the background. Simple the code is,
Name = fullfile('c:\saved_datas\', '?????' );
At '?????', there should be a variable like N, so 'workN.mid' will be saved like work1.mid, work2.mid...