MATLAB: Problem with working the browsing image in gui
image browse
I am trying to browse a image using a push button , and the address of the file saved in edit text box, but I can not work the image … how can i do that … plz help
Best Answer
Try this snippet to get a filename of an image or file to read in:
% Have user browse for a file, from a specified "starting folder."
% For convenience in browsing, set a starting folder from which to browse.
startingFolder = 'C:\Program Files\MATLAB';
if ~exist(startingFolder, 'dir')
% If that folder doesn't exist, just start in the current folder.
startingFolder = pwd;
end
% Get the name of the file that the user wants to use.
Best Answer