my_closereq.m

来自「用matlab进行图像处理 对车牌号码进行识别 非常具有实用价值」· M 代码 · 共 17 行

M
17
字号
function my_closereq
global comein;

if comein==2,
    %Function to close the window
    selection = questdlg(['Are you sure you want to close without saving?'],...
                         ['Close ' get(gcf,'Name')],...
                          'Yes','No','No');
    switch selection,
        case 'Yes',
            delete(gcf);
        case 'No'
            return
    end
else
    delete(gcf);
end

⌨️ 快捷键说明

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