view prof.m @ 555:8e0067aef5b0

Make spdiag accept both row and column vectors
author Jonatan Werpers <jonatan@werpers.com>
date Tue, 29 Aug 2017 12:22:01 +0200
parents cb65c81d6c87
children
line wrap: on
line source

function prof(f)
    profile on
    try
        f();
        profile viewer
    catch e
        fprintf(2, '\n%s', getReport(e));
        profile clear
    end
end