imagenote.m

来自「matlab处理图像的一些基本方法。其中有一部分mex程序需要安装编译」· M 代码 · 共 48 行

M
48
字号
function imagenote(note)%IMAGENOTE Set the note edit uicontrol%% Copyright (c) 1995 by Claudio Rivetti and Mark Young% claudio@alice.uoregon.edu,    mark@alice.uoregon.edu%global H Note_txt Note_lab Handlefigif nargin==0  note=[];endbgnote=[0.5 0.3 0.3];bg = [0.55 0.55 0.55];if isempty(note)  str=getparameter(H, 'Note',1);  if str~=inf    note=str;  endendif ~ischildren(Note_txt, Handlefig)  Note_lab=uicontrol(Handlefig, 'Style', 'text',...		'string', 'Note:',...                'Units', 'normalized',...                'Position', [0.01 0.035 0.2 0.037],...		'HorizontalAlignment', 'left',...		'tag', 'noteui',...                'BackgroundColor', bg);  Note_txt = uicontrol(Handlefig, 'Style', 'edit',...                'Units', 'normalized',...                'Position', [0.062 0.035 0.93 0.037],...		'HorizontalAlignment', 'left',...		'tag', 'noteui',...		'Callback', 'global Note_txt;H=setparameter(H, ''Note'',  get(Note_txt, ''string''));');endset(Note_txt, 'String', note);return

⌨️ 快捷键说明

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