MATLAB: How to input the image as input to the GUI. matlab gui How to input the image as input to the GUI.? Best Answer [filename, pathname] = uigetfile('*.png', 'Select an image?'); if ~ischar(filename); return; end %user cancelled filepath = fullfile(pathname, filename); Img = imread(filepath); Related SolutionsMATLAB: How can i change normal image to grayscale from menu editor gui [Filename,Pathname]=uigetfile({'*.jpg';'*.png'}, 'File Selector');name=strcat(Pathname,Filename);a=rgb2gray(imread(name));imshow(a); MATLAB: How to take input as excel file from user in matlab? [filename, pathname] = uigetfile({'*.xls', '*.xlsx'}, 'Pick an excel file');fullname = fullfile(pathname, filename);[num, txt, raw] = xlsread(fullname); Related QuestionGet path to all files in a folder of imagesInputHow to rename and save the result of image in the guiUse a variable name with VideoWriter
Best Answer