file_path = dir(''); fid = fopen(''); pattern_col = 0;
while ~feof(fid)
pattern_col = pattern_col + 1; %coloum increment is 1
exp = []; %initialize the sample data
area_sample = []; angle_sample = []; fcontent = fgetl(fid); %get pattern size
pattern_size = fcontent; fcontent = fgetl(fid); %get time interval
pattern_hour = fcontent; fcontent = fgetl(fid); %get file path
file_path_disp = fcontent; file_path = dir(fcontent); %should be specific
file_num = size(file_path, 1);
Could anyone explain the code for me ? It can read a image file ? especially the beginning. file_path = dir(''); fid = fopen('');
Can you make up some example for me ? thanks
Best Answer