📄 invval.m
字号:
function fig = invval(n,x, y,INV,choice,rd,rdd,wh)
% This is the machine-generated representation of a Handle Graphics object
% and its children. Note that handle values may change when these objects
% are re-created. This may cause problems with any callbacks written to
% depend on the value of the handle at the time the object was saved.
%
% To reopen this object, just type the name of the M-file at the MATLAB
% prompt. The M-file and its associated MAT-file must be on your path.
load invval;
sz=size(INV);
h0 = figure('Color',[0.8 0.8 0.8], ...
'Colormap',mat0, ...
'PointerShapeCData',mat1, ...
'Position',[234 80 199 400], ...
'Tag','invfig');
if wh == 1 wwh = 'R '; else wwh = 'S ';end;
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'ListboxTop',0, ...
'Position',[18.75 5 112.5 18.75], ...
'Style','text', ...
'String',[wwh 'CP: ' int2str(n) ', X:' int2str(x) ', Y:' int2str(y) ', choice: ' int2str(choice) ' R:' int2str(rd), ' Rs:' int2str(rdd) ], ...
'Tag','StaticText1');
hpop = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[1 1 1], ...
'Position',[18.75 50 112.5 20], ...
'String',1:sz(1), ...
'Style', 'popup',...
'Tag','Listbox1', ...
'Callback','val=get(gcbo,''Value'');set(findobj(gcbf,''Tag'',''hodnoty''),''Value'',val); ', ...
'Value',1);
for j=1:sz(2),
h1 = uicontrol('Style', 'popup',...
'Units','points', ...
'BackgroundColor',[1 1 1], ...
'Position',[18.75 85+(j-1)*24 112.5 20], ...
'String', INV(:,j),...
'Tag', 'hodnoty', ...
'Value',1);
end;
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'ListboxTop',0, ...
'Callback','close', ...
'Position',[18.75 30.75 112.5 18.75], ...
'String','Close', ...
'Tag','Pushbutton1');
if nargout > 0, fig = h0; end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -