Gets the file basename from a string.
Syntax |
Description |
---|---|
out = filebasename( "location/filename.ext" ); |
Returns the file basename as a string. |
Examples
Isolates the file basename from the full filename.
?filebasename("C:\Users\myname\Documents\FDTD Files\test.fsp"); test
See Also
List of commands , currentfilename , getpath , which , pwd , filedirectory , fileextension