Return a cell array containing the filenames for built-in images (e.g. cameraman.tif, coins.png). An optional input specifies what type(s) of files to look for. If no such files exist, return an empty cell array.
EDIT: The output should be sorted in alphabetical order.
Solution Stats
Problem Comments
9 Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers11
Suggested Problems
-
19179 Solvers
-
821 Solvers
-
Get the length of a given vector
12879 Solvers
-
Find the elements of a matrix according to a defined property.
91 Solvers
-
467 Solvers
More from this Author43
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
Mysterious order for me.
Why tif>png>jpg if you give an input list in another order ?
The order should not matter. I sort the lists before checking if they are equal.
After giving it some thought, I have decided to force users to sort their output in alphabetical order.
In 23 size, humm intriguing ...
The test suite is outdated. There are more images currently than reported in the test suite. (And in this case, I will not fix it manually.)
nice
good problem!
The current demo images can be found using
cd (matlabroot)
cd toolbox/images/imdata
dir
Oddly using
cd (fullfile(matlabroot,'toolbox/images/imdata/'))
gives a demo dir that includes cameraman.tif
With a few manipulations the expected results can be created.