counterlist.m

来自「在cdma系統中在下行做功率控制的性能分析」· M 代码 · 共 50 行

M
50
字号
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 + =
减小字号Ctrl + -
显示快捷键?