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

📄 pickcrosspoint.m

📁 Univ. of Calgary CREWS的免费地震研究软件
💻 M
字号:

function curpt(action)
 if(nargin<1) %set the button down function
                set(gcf,'windowbuttondownfcn','curpt(''init'')');
                return;
        end
        if(strcmp(action,'init'))
                %hline=gco;
                %if(~strcmp(get(hline,'type'),'line'))
                %       return;
                %end
                pt=get(gca,'currentpoint');
                %set(hline,'userdata',pt(1,1:2));
                %set(hline,'erasemode','xor','linestyle','.');

                %set(gcf,'windowbuttonmotionfcn','curpt(''move'')');
                %set(gcf,'windowbuttonupfcn','curpt(''fini'')');
                line(pt(1,1),pt(1,2),'color','r','linestyle','*');
                return;
        end
        if(strcmp(action,'move'))
                hline=gco;

                pt1=get(hline,'userdata');

⌨️ 快捷键说明

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