view prof.m @ 243:127e562bd6d3 feature/beams

Added function to calculate a solution at a given time.
author Jonatan Werpers <jonatan@werpers.com>
date Tue, 30 Aug 2016 10:44:17 +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