timetest.m
来自「Matlab学习课件」· M 代码 · 共 14 行
M
14 行
% Time test loop (script file)
% File name: timetest.m
ttest(1)=0;
i=1;
tic; % tic starts Matlab's stopwatch functions
while i <= 10
tnew=toc;
if tnew > ttest(i)
i = i + 1;
ttest(i) = tnew;
end
end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?