view prof.m @ 373:0976e579a6f0

Add functions for scaling figure windows and axes.
author Jonatan Werpers <jonatan@werpers.com>
date Wed, 25 Jan 2017 16:21:14 +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