clc
for ii=1:1:3 % start looping
rand_id= rand(1,1) *3; % Randomly generte a number between 1 to 3.if (rand_id<1)
rand_id=1; % 0 is ommitted.
else rand_id=floor(rand_id);
end
% rand_id will be used to open a previously saved file randomly.
if (rand_id==1)...