Mercurial > repos > public > sbplib
comparison sbplibVersion.m @ 612:77db2ef14191 feature/grids
Add function for finding the path of sbplib
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Wed, 11 Oct 2017 15:43:31 +0200 |
parents | ae15b72c16c1 |
children |
comparison
equal
deleted
inserted
replaced
611:5a7f7f206594 | 612:77db2ef14191 |
---|---|
1 % Prints the version and location of the sbplib currently in use. | 1 % Prints the version and location of the sbplib currently in use. |
2 function sbplibVersion() | 2 function sbplibVersion() |
3 scriptname = mfilename('fullpath'); | 3 location = sbplibLocation(); |
4 [folder,~,~] = fileparts(scriptname); | |
5 | 4 |
6 name = 'sbplib (feature/grids)'; | 5 name = 'sbplib (feature/grids)'; |
7 ver = '0.0.x'; | 6 ver = '0.0.x'; |
8 | 7 |
9 fprintf('%s %s\n', name, ver); | 8 fprintf('%s %s\n', name, ver); |
10 fprintf('Running in:\n%s\n',folder); | 9 fprintf('Running in:\n%s\n', location); |
11 end | 10 end |