view sbplibVersion.m @ 8:67ab7fd8054c

Changed to cleaner way of gett the current folder.
author Jonatan Werpers <jonatan@werpers.com>
date Mon, 21 Sep 2015 17:40:07 +0200
parents c3c95b7a1a1c
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