Image file saving location
古いコメントを表示
my code ↓
for i = 1:5
h = imagesc(X, Y, Z(:,:,i)); xlim([-2 2]); ylim([-1 1]);
fname = ['Image', num2str(i)];
print(fname, '-djpeg');
end
How do I save the image file to folder 'C:\Users\leehj\Desktop\aaa' ?
採用された回答
その他の回答 (1 件)
KSSV
2022 年 5 月 19 日
thepath = 'C:\Users\leehj\Desktop\aaa\' ;
for i = 1:5
h = imagesc(X, Y, Z(:,:,i)); xlim([-2 2]); ylim([-1 1]);
fname = [thepath,'Image', num2str(i)];
print(fname, '-djpeg');
end
カテゴリ
ヘルプ センター および File Exchange で Image Type Conversion についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!