📄 counterlist.m
字号:
function counterlist()% COUNTERLIST - Lists the initialized counters% % COUNTERLIST displays a list of initialized counters and their values.%% The counters are read from the matlab preference% 'counter_utility_data'.%% Example:% counterinit('MyCounter')% counterinc('MyCounter')% counterlist% initializes the counter 'MyCounter', increases it by one, and% displays the list of current counters.%% See also: COUNTERVAL, COUNTERINIT, COUNTERSET, COUNTEREXIST,% COUNTERLIST and COUNTERDELETE %% AUTHOR : J鴊er Hanseg錼d %% $DATE : 19-Apr-2005 23:57:56 $ %% $Revision: 1.00 $ %% DEVELOPED : 7.0.4.365 (R14) Service Pack 2 %% FILENAME : counterlist.m counters = getpref('counter_utility_data');if isempty(counters) disp('No counters are initialized');else names = fieldnames(counters); disp(sprintf('Found %i counters:', numel(names))); for i = 1:numel(names) disp(sprintf('%s: %s', names{i}, mat2str(counters.(names{i}).val))); endend % Created with NEWFCN.m by J鴊er Hanseg錼d % Contact...: jogerh@ifi.uio.no % $Log$ % ===== EOF ====== [counterlist.m] ======
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -