matlab 程序暂停 uiwait

   %An example which blocks execution until the user responds:
        uiwait(msgbox('String','Title','modal'));


message = sprintf('Left click and hold to begin drawing.\nLift mouse button to finish');    % 定义String, '\n'换行

uiwait(msgbox(message));    %等待用户执行

你可能感兴趣的:(String,user,matlab,button)