- On Tuesdays Doug will provide MATLAB tutorials.
- On Fridays guest bloggers Jiro, Brett and Bob will highlight File Exchange submissions.
A = rand(12000, 400); B = rand(400, 12000); f = @() sum(A.' .* B, 1); timeit(f)
ans = 0.14863What I love about timeit is what it does automatically so I don't have to think about. It warms up the code, decides how many times to repeat the operation, accounts for overhead and determines how long the operation took using statistics. Thank you Steve! Do you have a favorite tip for measuring performance to share?
댓글을 남기려면 링크 를 클릭하여 MathWorks 계정에 로그인하거나 계정을 새로 만드십시오.