f_calmenu.m

来自「digital signal processing常用工具箱」· M 代码 · 共 21 行

M
21
字号
function f_calmenu (plotstr)

%F_CALMENU: Set up caliper menu item
%
% Usage: f_calmenu (plotstr)
%
% Inputs: 
%         plotstr = callback string to regenerate plot 
         
hm_2 = uimenu (gcf,'Label','Caliper');
cback1 = ['try, '...
          '[x0,y0] = ginput(1); hold on; plot(x0,y0,''k+''); hold off;'...
          's = sprintf(''  (x,y) = (%.2f,%.2f)'',x0,y0);'...
          'text(x0,y0,s); '...
          'catch, end;'];
hm21 = uimenu (hm_2,'Label','Use the mouse to select a measurement point on the plot.',...
               'Callback',cback1);
hm22 = uimenu (hm_2,'Label','Erase measured points from the plot area','Callback',plotstr);


 

⌨️ 快捷键说明

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