scountfun.m
来自「有关matlab r2007的实用教程」· M 代码 · 共 14 行
M
14 行
function h=sCountFun(X)
h = @subCount;
count=X
subCount(0,count);
function subCount(incr, ini)
persistent count;
initializing = nargin > 1;
if initializing
count = ini;
else count=count + incr
end
end
end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?