How to save 4 images in 4 sub folders in the directory

조회 수: 1 (최근 30일)
devabhaktuni phaneendrababu
devabhaktuni phaneendrababu 2013년 10월 11일
답변: Image Analyst 2013년 10월 11일
I want to save 4 different images 4 different sub folders in directory using fullfile command . how to give command in matlab

답변 (2개)

Image Analyst
Image Analyst 2013년 10월 11일
baseFileName1 = 'image1.png'
folder1 = 'd:\images1';
fullFileName = fullfile(folder1, baseFileName1);
imwrite(yourImageArray, fullFileName);
% Repeat for files and folders 2, 3, and 4.

Azzi Abdelmalek
Azzi Abdelmalek 2013년 10월 11일
file1=fullfile(sub_folder1,filename1)
imwrite(im1,file1)
% Do the same for the other files

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by