view sbplibVersion.m @ 193:cb65c81d6c87

Added functions to easily time and profile a function.
author Jonatan Werpers <jonatan@werpers.com>
date Tue, 24 May 2016 08:42:27 +0200
parents 67ab7fd8054c
children ae15b72c16c1
line wrap: on
line source

% Prints the version and location of the sbplib currently in use.
function sbplibVersion()
    scriptname  = mfilename('fullpath');
    [folder,~,~] = fileparts(scriptname);

    name = 'sbplib';
    ver = '0.0.x';

    fprintf('%s %s\n', name, ver);
    fprintf('Running in:\n%s\n',folder);
end