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.

fileattrib<br />

The operation was successful as indicated by the status, stat, being 1. The<br />

structure mess contains the file attributes. Access the attribute values in the<br />

structure. For example, typing<br />

mess.Name<br />

returns the path for results<br />

ans =<br />

d:\work\results<br />

Return Attributes with Wildcard for name<br />

Return the attributes for all files in the current directory whose names begin<br />

with new.<br />

[stat,mess]=fileattrib('new*')<br />

MATLAB returns<br />

stat =<br />

1<br />

mess =<br />

1x3 struct array with fields:<br />

Name<br />

archive<br />

system<br />

hidden<br />

directory<br />

UserRead<br />

UserWrite<br />

UserExecute<br />

GroupRead<br />

GroupWrite<br />

GroupExecute<br />

OtherRead<br />

OtherWrite<br />

OtherExecute<br />

The results indicate there are three matching files. To view the filenames, type<br />

mess.Name<br />

2-811

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

Saved successfully!

Ooh no, something went wrong!