How to upload multiple images in matlab

4 views (last 30 days)
NURUL FARHANAH on 17 Apr 2022
Edited: Tala on 19 Apr 2022
how can i upload multiple images in matlab?
i have a total of 40 files, each files contains 10 images
how do i upload all the images, which in total = 400 images in matlab?

Answers (1)

Tala on 19 Apr 2022
Edited: Tala on 19 Apr 2022
you have several options depending on your goal. look at Batch Processing App. or this simple code:
for i=1:400
FileName=strcat('Image',num2str(i),'.jpg'); % assuming they the name is "Image1.jpg" , "Image2.jpg",
% your code

Community Treasure Hunt

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

Start Hunting!