⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 csspause.m

📁 信号实验常用的simulink模型和mfile,可直接在matlan下运行。
💻 M
字号:
function stopFlag=csspause(figNumber)
%CSSPAUSE Pause function for the Slide Show format.
%	The CSSPAUSE function allows a Slide Show demo to interact
%	properly with the buttons in the Slide Show GUI shell.
%	If there is no GUI shell being used, CSSPAUSE will pause
%	and display a prompt to continue by pressing a key.

if figNumber==0,
    stopFlag=0;
    disp(' ');
    disp(' 请按任意键继续……');
    disp(' ');
    pause;

else
    wait=0;
    stop=-1;

    figure(figNumber);
    axHndl=gca;
    hndlList=get(figNumber,'UserData');

    startHndl=hndlList(2);
    contHndl=hndlList(3);
    stopHndl=hndlList(4);
    autoHndl=hndlList(5);
    helpHndl=hndlList(6);
    closeHndl=hndlList(7);

    % ====== Start Wait Loop
    % Strangely enough, we want to turn off the watch pointer
    set(figNumber,'Pointer','arrow');
    if get(autoHndl,'Value'),
	% If the autoHndl flag is set, don't wait for the user, just
	% pause a little and then continue.
        pause(2);
    else
        set(axHndl,'Userdata',wait);
        while get(axHndl,'Userdata')==wait,
            % holding loop can be exited w/Cont or Stop button.
	    drawnow
        end;
    end;

    if get(axHndl,'Userdata')==stop,
        set([startHndl helpHndl closeHndl],'Enable','on');
        set([stopHndl contHndl],'Enable','off');
        stopFlag=1;
    else
        stopFlag=0;
    end;

    % Now turn the watch back on
    set(figNumber,'Pointer','watch');
    % ====== End Wait Loop

end     % if figNumber==0 ...

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -