에서 파일을 명명 나는 현재이있다 : 나는 부분은 현재 '디스크가 image.jpg'중 하나입니다 (다음에 의해 주어진) 현재 시간의 이름을 말에 대해 작성합니다 어떻게MATLAB
[filename, pathname, filterindex] = uiputfile({...
... (various filetypes)
'Disks image.jpg');
if isequal(filename,0) || isequal(pathname,0)
disp('User selected Cancel');
else
disp(['User selected ',fullfile(pathname,filename)]);
end
imwrite(M, 'Disks image.jpg', 'jpg');
disp('Image saved');
end
를 :
dateTime = javaMethod('currentTimeMillis', 'java.lang.System');
또는 모두 그와의 조합이 이름을 다른 지정된 이름 (예 : currentTimeMillis_Diffraction_pattern.jpg)
나는 두 개의 이미지 파일을 저장하고, 그것은이 경우 좋은 것 두 번째 이미지를 다른 파일 폴더로 분리하지 않고도 정렬 된 목록을 제공하므로 두 번째 방법으로 파일의 이름을 지정할 수 있습니다. ........... + ..........._ Diffraction_pattern.extension이
이