usefulcodes.blogspot.com
AboutME
ajabgajabBLOG
nabinkm.com
NewPost
Wednesday, March 24, 2010
recursive action into folders
I wanted to do mcc to all the files inside the folder... you know automate it.
This one does it!
clear all
clc
% Read directory names
dirLIST = dir
% get number of directories
N = length(dirLIST)
% Loop through the directories
% Skip the first two..
for n = 3:N
thisDIR = dirLIST(n).name;
cd(thisDIR);
disp(['Working on ' thisDIR]);
mcc -m run_me_deAR.m
pwd
cd('..');
end
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment