Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

saveas(gcf​,'folderna​me.jpg')に1​50度という名前で保​存したいのですがやり​方がわかりません.お​願いします

1 vue (au cours des 30 derniers jours)
IGUCHI REI
IGUCHI REI le 26 Mai 2023
Clôturé : Walter Roberson le 27 Mai 2023
clear;
close all;
%foldername = "フォルダ名";
foldername = "150度";
im_list=dir(foldername);%フォルダ内のデータのリスト化%
file_name = {im_list.name};
file_name = file_name(~ismember(file_name, {'.', '..'}));
for n = 1:size(file_name, 2)
I = imread(fullfile(foldername, file_name{n}));
if n <= 11
subplot(4, 5, n);
imshow(I)
title(file_name{n})
sgtitle(foldername)
elseif n == 12
subplot(4, 5, n);
imshow(I)
title(file_name{n})
sgtitle(foldername)
saveas(gcf,'foldername.jpg')
elseif n <= 24
subplot(4, 5, n-12);
imshow(I)
title(file_name{n})
sgtitle(foldername)
end
end

Réponses (0)

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!