From: Matthew Arsenault on 26 Apr 2010 20:00 One this I have not been able to wrap my head around is trying to batch process on some files. I have a collection of files (eg, 1.txt, 2.txt, 3.txt, 4.txt.....etc). And I have a command I want to execute, eg: X1.txt=Readthisfile('1.txt','key','Source'); I have to do this roughly 200+ times, and rather than write this out everytime, I'd like to put together a script to seamlessly run through all off the files in the folder. Anyone has a good 'pointer' for me to the help files, or a suggestion to get me started? Thanks, Matt
From: ImageAnalyst on 26 Apr 2010 20:25 Here's a nice little GUI template that will let you select files and batch process them: http://www.mathworks.com/matlabcentral/fileexchange/24224 It should be easy to adapt for your situation.
From: Steven Lord on 27 Apr 2010 10:00 "Matthew Arsenault" <matthew.a.arsenault_removethis_(a)gmail.com> wrote in message news:hr59em$lhf$1(a)fred.mathworks.com... > One this I have not been able to wrap my head around is trying to batch > process on some files. I have a collection of files (eg, 1.txt, 2.txt, > 3.txt, 4.txt.....etc). > > And I have a command I want to execute, eg: > X1.txt=Readthisfile('1.txt','key','Source'); > > I have to do this roughly 200+ times, and rather than write this out > everytime, I'd like to put together a script to seamlessly run through all > off the files in the folder. > > Anyone has a good 'pointer' for me to the help files, or a suggestion to > get me started? Processing a sequence of files is question 4.12 in the newsgroup FAQ (linked in my signature) -- that gives a couple of small examples of how to do this. -- Steve Lord slord(a)mathworks.com comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ
|
Pages: 1 Prev: Interfacing SABRENT webcam with MATLAB Next: How do you maximize a figure upon creation? |