% Save a set of images as a big matrix. Can be retrived with 'LoadPicset.m' % % Inputs: filename- filename % width - width of each image % height - height of each image % lbl - image labels % picset - matrix of images (one image per column) in % 8-bit format. fid=fopen(filename,'w','b'); fwrite(fid,size(picset,2),'int32'); fwrite(fid,lbl,'int32'); fwrite(fid,width,'int32'); fwrite(fid,height,'int32'); fwrite(fid,picset,'int8'); fclose(fid);