QUESTDLGR Modification of questdlg for upto 6 buttons Example: questdlgr('Please select the Type of the Input data file',['Input DATA procedure is required for ' upper(mfilename) ' to run:-) Rezaul'],'inputmfile.m file', 'inputdata.dat file','inputdatafile.mat','Any other file','Cancel','inputdata.dat file'); inputbtn = questdlgr('Please select the Clear Workspace option:',['CLEARR:-) Rezaul'],'Clear All', 'Keep COM','Clear COM','Cancel','REZA','Hasi','Cancel'); ButtonName=questdlgr('What is your wish?', ... 'Genie Question', ... 'Food','Clothing','Money','Money'); switch ButtonName, case 'Food', disp('Food is delivered'); case 'Clothing', disp('The Emperor''s new clothes have arrived.') case 'Money', disp('A ton of money falls out the sky.'); end % switch See also TEXTWRAP, INPUTDLG, INPUTDLG, QUESTDLG.