ButtonName=questdlg('Apply to all figures?','Question!)- Rezaul','Ok','Cancel','Cancel'); switch ButtonName, case 'Ok', ind = 0;f = findobj(0);f(f == 0) = [];f = findobj('Type', 'figure');; pgsetr%(f);%for i = 1:length(f);myfigure(f(i));myset;end case 'Cancel', %mysetspec; pgsetr(gcf) end