?? 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] ======
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -