panda1234
Full Member level 2

Hi,
I have 100 pictures and i want to imports these in MATLAB for this we can write below code:
What do i do?
Thanks
I have 100 pictures and i want to imports these in MATLAB for this we can write below code:
but with this Method my sorting was vanished for example in folder i have picture that it's name is Pic10 and it's number in MATLAB is 2.but i want to numbers in MATLAB as same as in folder.Dir = 'Pictures\';
% Read images from Images folder
Imgs = dir(fullfile(Dir, '*.bmp'));
for j=1:length(Imgs)
pic{j} = imread(fullfile(Dir, Imgs(j).name)); % Read image
end
What do i do?
Thanks