write file series of steps matlab code example Example: write file series of steps matlab save(['solution_number',num2str(n),'.mat'],'myVariable');