%Jonathan Dorfman, Jan. 18, 2005 (Math128B) %And's together all schedule128.mat files in directory "ScheduleMat" % represented by a 16x5 matrix of 0's and 1's % and saved as file "schedule128.mat" function ScheduleAnding() files = what('ScheduleMat'); matfiles = files.mat; nn = size(matfiles); numFiles = nn(1); R = ones(16,5); %initial target has all time slots available for i=1:numFiles filepath = ['ScheduleMat/' char(matfiles(i))] display(['loading file' filepath]); load(filepath); M R = R & M; end Scheduler('init', R); return