refresh.m

来自「地震中常用的一些偏移程序」· M 代码 · 共 2 行

M
2
字号
function refresh(h)

% REFRESH REFRESH causes the current figure window to be
%	redrawn. REFRESH(h) causes the figure window specified
%	by handle h to be redrawn.

%	D. Thomas   5/26/93
%       Copyright (c) 1984-93 by The MathWorks, Inc.

if nargin==1,
	if strcmp(get(h,'type'),'figure'),
		set(h,'color',get(h,'color'))
	else,
		disp('Handle does not refer to a figure object')
	end
else,
	set(gcf,'color',get(gcf,'color'))
end

⌨️ 快捷键说明

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