⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 choicex.m

📁 信号实验常用的simulink模型和mfile,可直接在matlan下运行。
💻 M
字号:
function choicex(name)
%CHOICEX Close a list of choices.
%	CHOICEX('NAME') closes the choice window with name 'NAME' and
%	removes this name from the registration list.
%	CHOICEX is used as the callback for the Close button in a choice list
%	created using CHOICES.
%
%	See also CHOICES.

%	Copyright (c) 1984-94 by The MathWorks, Inc.

if ~isstr(name)
	error('Requires string input argument.')
end
name = deblank(name);
% set up link to global choice names and handles and add or delete
% these in lock-step
global CHOICELIST
global CHOICEHANDLES
match = 0;
for i = 1:size(CHOICELIST,1)
	if strcmp(name,deblank(CHOICELIST(i,:)))
	    match = i;
	    break;
	end
end
if match == 0   % no match
	return
else
	delete(CHOICEHANDLES(match));
	CHOICEHANDLES(match) = [];
	CHOICELIST(match,:) = [];
	if (match-1) > 0
		set(CHOICEHANDLES(match-1),'visible','on')
	end
end

⌨️ 快捷键说明

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