usefulcodes.blogspot.com
AboutME
ajabgajabBLOG
nabinkm.com
NewPost
Wednesday, March 17, 2010
Automated Code execution in different folders as per iteration and value
I wanted to automate the code execution in different folder as per iteration.
This works!
perc = 0.05:0.2:1;
for folder = 1:length(perc)
percent = perc(folder);
r = sqrt(percent/pi)*4;
switch(folder)
case 1
cd 1
run_me_deAR(r)
pwd
% pause
cd ..
case 2
cd 2
run_me_deAR(r)
pwd
% pause
cd ..
% % case 3
% % cd 3
% % run_me_deAR(r)
% % pwd
% % % pause
% % cd ..
% % case 4
% % cd 4
% % run_me_deAR(r)
% % pwd
% % % pause
% % cd ..
% % case 5
% % cd 5
% % run_me_deAR(r)
% % pwd
% % % pause
% % cd ..
% %
end
end
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment