Extracting individual file data from uigetfile multiselect
Show older comments
I want to use the multiselect feature of uigetfile, and I have done this successfully, returning the pathname and filenames of all of the files that I want. The files Im selecting are images and I want to show the first image in the series in a figure, but I am unable to do this, an error message pops up saying:
"Expected input number 1, I, to be one of these types:
double, single, uint8, uint16, uint32, uint64, int8, int16, int32, int64, logical
Instead its type was cell."
How can I convert the image location from a "cell" to something I can use? My current code:
"[filename pathname] = uigetfile('*.*', 'Pick Images', 'Multiselect', 'on');
image_matrix = fullfile(pathname, filename(1))
imshow(image_matrix)"
Accepted Answer
More Answers (0)
Categories
Find more on Display Image 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!