Mercurial > hg > ishara
view general/fileutils/removeext.m @ 44:3cedfd4549ef
Code added since initial check in.
author | samer |
---|---|
date | Tue, 13 Jan 2015 14:03:17 +0000 |
parents | e44f49929e56 |
children |
line wrap: on
line source
% removeext - remove extension from a file name % % removeext :: string -> string. function nm=removeext(path) dot=max(strfind(path,'.')); if isempty(dot), nm=path; else nm=path(1:(dot-1)); end