counterdemo.m
来自「在cdma系統中在下行做功率控制的性能分析」· M 代码 · 共 66 行
M
66 行
% COUNTERDEMO - Demo script for counter functionality% % COUNTERDEMO starts a demo for the counter functions%% AUTHOR : J鴊er Hanseg錼d %% $DATE : 20-Apr-2005 00:36:24 $ %% $Revision: 1.00 $ %% DEVELOPED : 7.0.4.365 (R14) Service Pack 2 %% FILENAME : counterdemo.m echo onmore on%Initialize a counter 'MyCounter' and return its current value:counterinit('MyCounter')%Increase the counter by onecounterinc('MyCounter');%Display the value of 'MyCountercounterval('MyCounter')%List the active counterscounterlist%Evaluate if the counter 'MyCounter2' existscounterexists('MyCounter2')%Create a counter 'MyCounter2'counterinit('MyCounter2');%Set the counter to the value 4counterset('MyCounter2', 4);%Increase the counter in a loopfor i = 1:5 counterinc('MyCounter'); disp(counterval('MyCounter'))end%List the current counters:counterlist%Get the value of 'MyCounter2'counterval('MyCounter2')%Clean upcounterdelete('MyCounter')counterdelete('MyCounter2');%Verify that the counters does not existcounterexists ('MyCounter')counterexists('MyCounter2')more offecho off% Created with NEWFCN.m by J鴊er Hanseg錼d % Contact...: jogerh@ifi.uio.no % $Log$ % ===== EOF ====== [counterdemo.m] ======
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?