28.12.2012 Views

Figure Properties - SERC

Figure Properties - SERC

Figure Properties - SERC

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

2fileparts<br />

Purpose Return filename parts<br />

Syntax [pathstr,name,ext,versn] = fileparts('filename')<br />

fileparts<br />

Description [pathstr,name,ext,versn] = fileparts('filename') returns the path,<br />

filename, extension, and version for the specified file. The returned ext field<br />

contains a dot (.) before the file extension.<br />

The fileparts function is platform dependent.<br />

You can reconstruct the file from the parts using<br />

fullfile(pathstr,[name ext versn])<br />

Examples This example returns the parts of file to path, name, ext, and ver.<br />

file = '\home\user4\matlab\classpath.txt';<br />

[pathstr,name,ext,versn] = fileparts(file)<br />

pathstr =<br />

\home\user4\matlab<br />

name =<br />

classpath<br />

ext =<br />

.txt<br />

versn =<br />

''<br />

See Also fullfile<br />

2-817

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!