Imread Image using pwd?

7 views (last 30 days)
Oman Wisni
Oman Wisni on 16 Jan 2019
Commented: Oman Wisni on 17 Jan 2019
Hi, is there any way to create code for imread image using pwd, without declarad specific directory?
like :
im = imread(pwd,'.bmp');
could help me for this? thank you

Accepted Answer

Walter Roberson
Walter Roberson on 16 Jan 2019
projectdir = pwd;
for K = 1 : 10
basename = sprintf('subject_%05d_sagital.bmp', K);
fullname = fullfile(projectdir, basename);
im = imread(fullname);
end
  3 Comments
Walter Roberson
Walter Roberson on 16 Jan 2019
see uigetfile
Oman Wisni
Oman Wisni on 17 Jan 2019
Yes sir, I already got what I need for this. Thank you for the answer

Sign in to comment.

More Answers (0)

Categories

Find more on Convert Image Type in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!