pickcrosspoint.m
来自「地震解释处理matlab工具箱」· M 代码 · 共 2 行
M
2 行
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 + =
减小字号Ctrl + -
显示快捷键?