Mercurial > repos > public > sbplib
comparison 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 |
comparison
equal
deleted
inserted
replaced
7:8add0564ad6a | 8:67ab7fd8054c |
---|---|
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 scriptname = mfilename('fullpath'); |
4 I = find(scriptname == '/',1,'last'); | 4 [folder,~,~] = fileparts(scriptname); |
5 folder = scriptname(1:I); | |
6 | 5 |
7 name = 'sbplib'; | 6 name = 'sbplib'; |
8 ver = '0.0.x'; | 7 ver = '0.0.x'; |
9 | 8 |
10 fprintf('%s %s\n', name, ver); | 9 fprintf('%s %s\n', name, ver); |