Mercurial > hg > aimmat
annotate aim-mat/gui/generate_new_movie_name.m @ 4:537f939baef0 tip
various bug fixes and changed copyright message
author | Stefan Bleeck <bleeck@gmail.com> |
---|---|
date | Tue, 16 Aug 2011 14:37:17 +0100 |
parents | 20ada0af3d7d |
children |
rev | line source |
---|---|
tomwalters@0 | 1 % procedure for 'aim-mat' |
tomwalters@0 | 2 % |
tomwalters@0 | 3 % function handles=do_aim_calculate(handles) |
tomwalters@0 | 4 % |
tomwalters@0 | 5 % INPUT VALUES: |
tomwalters@0 | 6 % RETURN VALUE: |
tomwalters@0 | 7 % a new unique movie name |
tomwalters@0 | 8 % |
bleeck@3 | 9 % |
bleeck@3 | 10 % (c) 2011, University of Southampton |
bleeck@3 | 11 % Maintained by Stefan Bleeck (bleeck@gmail.com) |
bleeck@3 | 12 % download of current version is on the soundsoftware site: |
bleeck@3 | 13 % http://code.soundsoftware.ac.uk/projects/aimmat |
bleeck@3 | 14 % documentation and everything is on http://www.acousticscale.org |
bleeck@3 | 15 |
tomwalters@0 | 16 |
tomwalters@0 | 17 |
tomwalters@0 | 18 function new_name=generate_new_movie_name(handles) |
tomwalters@0 | 19 % looks through the directory and decides, what name a new movie should get |
tomwalters@0 | 20 |
tomwalters@0 | 21 dirname=handles.info.directoryname; |
tomwalters@0 | 22 cd(dirname); |
tomwalters@0 | 23 |
tomwalters@0 | 24 allmovies=dir('*.mov'); |
tomwalters@0 | 25 nr_movies=length(allmovies); |
tomwalters@0 | 26 newnumber=nr_movies+1; |
tomwalters@0 | 27 new_name=sprintf('%s.movie%d.mov',handles.info.uniqueworkingname,newnumber); |
tomwalters@0 | 28 cd .. |