[p, f, e] = fileparts(fullpath)
p = fileparts(fullpath, 'path')
f = fileparts(fullpath, 'filename')
e = fileparts(fullpath, 'extension')
| Parameter | Description |
|---|---|
| fullpath | a string: file or directory name. |
| Parameter | Description |
|---|---|
| p | a string: path of the directory fullpath. |
| f | a string: file name without extension of fullpath. |
| e | a string: extension name of fullpath. |
[p ,f, e] = fileparts(fullpath) splits in its three parts: path, filename, extension including the dot.
[p, f, e] = fileparts([nelsonroot(), '/etc/finish.m'])
p = fileparts([nelsonroot(), '/etc/finish.m'], 'path')
f = fileparts([nelsonroot(), '/etc/finish.m'], 'filename')
e = fileparts([nelsonroot(), '/etc/finish.m'], 'extension')
| Version | Description |
|---|---|
| 1.0.0 | initial version |