tomwalters@0: % procedure for 'aim-mat' tomwalters@0: % tomwalters@0: % function handles=do_aim_calculate(handles) tomwalters@0: % tomwalters@0: % INPUT VALUES: tomwalters@0: % RETURN VALUE: tomwalters@0: % a new unique movie name tomwalters@0: % bleeck@3: % bleeck@3: % (c) 2011, University of Southampton bleeck@3: % Maintained by Stefan Bleeck (bleeck@gmail.com) bleeck@3: % download of current version is on the soundsoftware site: bleeck@3: % http://code.soundsoftware.ac.uk/projects/aimmat bleeck@3: % documentation and everything is on http://www.acousticscale.org bleeck@3: tomwalters@0: tomwalters@0: tomwalters@0: function new_name=generate_new_movie_name(handles) tomwalters@0: % looks through the directory and decides, what name a new movie should get tomwalters@0: tomwalters@0: dirname=handles.info.directoryname; tomwalters@0: cd(dirname); tomwalters@0: tomwalters@0: allmovies=dir('*.mov'); tomwalters@0: nr_movies=length(allmovies); tomwalters@0: newnumber=nr_movies+1; tomwalters@0: new_name=sprintf('%s.movie%d.mov',handles.info.uniqueworkingname,newnumber); tomwalters@0: cd ..