MATLAB: Error in uigetfile “MultiSelect”


based on the output i want i select images from a folder…. sometimes i want to select one image sometimes more than one image…. so i used 'MultiSelect' option in uigetfile…… but when i use 'MultiSelect' option in uigetfile and select only one image i'm getting error…. how can i use this syntax for selecting both single image and multiple image….. please can someone help me…. please do reply….

Best Answer

selectedFiles = uigetfile('*.PNG', 'Multiselect', 'on')