Name

fileext — returns extension for a file path

Calling Sequence

extension = fileext(fullpath)

Parameters

fullpath

a character string, the given file path

extension

a character string, the extension part is any or ''

Description

extension=fileext(fullpath) splits the fullpath character string in the extension part including the dot.

Examples

 
extension = fileext('SCI/etc/scilab.start')
extension = fileext(['SCI/etc/scilab.start';'SCI/etc/scilab.quit'])
 

See Also

fileparts

Authors

Allan CORNET