strip directory and suffix from filenames
processedfiles = basename(files[,flag [,flagexpand]])
a string matrix giving a set of file names.
optional boolean, used to convert the given path(s) for the current operating system.
Default value is true (%t).
optional boolean, used to expand leading
variables in paths. Only used with
flag argument. Default value
is true (%t).
a string matrix containing the processed filenames.
basename(files) returns the suffices of paths, i.e. the last string following the final file separator for each path given in files.
If flag is true the paths are first converted for the current operating system (for example, 'C:/Tmp/folder' will be converted on Windows to 'C:\Tmp\folder').
if flagexpand is true, leading path variables (HOME, SCI, SCIHOME, ...) are expanded for the current operating system
(for example, 'HOME\tmp' will be converted on Linux to 'home/<user>/tmp', where <user> is the current user logged on).
See more details on flag and flagexpand in pathconvert section.