folder = 'E:\datasets\cohn-kanade-images\keep-align-kaipeng';
addpath('..');
image_list = get_image_list_in_folder(folder);
list_file = 'E:\datasets\cohn-kanade-images\list.txt';

list_fid = fopen(list_file,'w');
for i=1:length(image_list)
    [a,b,c]=fileparts(image_list{i});
    fprintf(list_fid,'%s %c\r\n', image_list{i}, b(end));
end;
fclose(list_fid);
happynear
github-repos/MATLAB/happynear-FaceVerification/FaceVerification-c8c2b4d805abf7240d9d39d7b57151e04958f6bf/dataset/CK/create_list.m
FaceVerification
github-repos/MATLAB/happynear-FaceVerification
c8c2b4d805abf7240d9d39d7b57151e04958f6bf