首页 > 技术文章 > matlab 计算程序运行时间

picassooo 2020-06-17 14:47 原文

tic
k = 0;
for ii = 1:100
    k = k + ii;
end
disp(k);
toc

运行结果:

推荐阅读