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.

fullfile<br />

2fullfile<br />

Purpose Build a full filename from parts<br />

Syntax fullfile('dir1','dir2',...,'filename')<br />

f = fullfile('dir1','dir2',...,'filename')<br />

Description fullfile(dir1,dir2,...,filename) builds a full filename from the<br />

directories and filename specified. This is conceptually equivalent to<br />

2-910<br />

f = [dir1 dirsep dir2 dirsep ... dirsep filename]<br />

except that care is taken to handle the cases when the directories begin or end<br />

with a directory separator.<br />

Examples To create the full filename from a disk name, directories, and filename,<br />

See Also fileparts, genpath<br />

f = fullfile('C:','Applications','matlab','myfun.m')<br />

f =<br />

C:\Applications\matlab\myfun.m<br />

The following examples both produce the same result on UNIX, but only the<br />

second one works on all platforms.<br />

fullfile(matlabroot,'toolbox/matlab/general/Contents.m')<br />

fullfile(matlabroot,'toolbox','matlab','general','Contents.m')

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

Saved successfully!

Ooh no, something went wrong!