Script Skips a portion of code
Show older comments
The code that I'm running is a bit lengthy and I'll post the part where I'm having the problem with. If more information is needed, I'll provide more lines of code.
%Open a data file in the same time zone
MonthBox=['C:/Folder_A/'];
Monthly=dir(MonthBox);
%Open file every month
DayCount=0;
for Monthlyi=4:length(Monthly)
% more code here
for Dailyi=4:length(Daily)
% more code here
Now, when I run the code, it skips the entire code after the "SumDayCounter=0;" . It does not enter the second "for" condition.
Can anyone think of a reason for this and a possible fix?
Apologies if the provided information is not enough. I can provide more, if needed.
Any advice is appreciated.
Thanks in advance.
Accepted Answer
More Answers (0)
Categories
Find more on File Operations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!