configresize.m
来自「这是一个基于matlab开发的关于c语言的图形转换程序,可实现直方图的生成和传输」· M 代码 · 共 27 行
M
27 行
function configresize(hFig)
%CONFIGRESIZE Configure GUI to handle resizing operations.
% CONFIGRESIZE(hFig) changes the units and fontunits of all objects that support these
% units to 'normalized'. Then, when a figure is resized all objects are resized
% accordingly.
%
% This function should be used in conjunction with the RESIZEFCN function.
%
% See also RESIZEFCN
% Jordan Rosenthal, 22-Jun-99
error(nargchk(1,1,nargin));
%-------------------------------------------------------------------------------
% Get handles
%-------------------------------------------------------------------------------
hAxes = findall(hFig,'type','axes');
hText = findall(hAxes,'type','text');
hUIControls = findall(gcf,'type','uicontrol');
hUIText = findall(hUIControls,'style','text');
hUIFrames = findall(hUIControls,'style','frame');
%-------------------------------------------------------------------------------
% Set objects to normalized units
%-------------------------------------------------------------------------------
set([hAxes; hText; hUIControls],'units','normalized','fontunits','normalized');
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?