clc; clear all; num = 10; for i = 1 : num IM = imread(sprintf('E:\\TEST\\PtzTEST2015-8-9\\image1280x720\\morning\\0-1\\X\\%03d-1.jpg', i)); eval(sprintf('IM%d = IM;', i)); end str = 'save data.mat'; for i = 1 : num str = sprintf('%s IM%d ', str, i);…