matlab中每次循环的时间咋保存

以下是官网上的例子t = zeros(1,100); for n = 1:100 A = rand(n,n); b = rand(n,1); tic; x = A\\b; t(n) = toc; end plot(t)


    推荐阅读