view prof.m @ 983:b89379fb0814 feature/timesteppers

Convert Rungekutta4 to take F(t,y) instead of a matrix
author Jonatan Werpers <jonatan@werpers.com>
date Tue, 08 Jan 2019 12:07:57 +0100
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