Checking file names

2 次查看(过去 30 天)
Matthew Moynihan
Matthew Moynihan 2011-1-27
Hello,
I am writing a file to excel. Here is the code:
xlswrite('data.xls', file);
How can I check to see if that file name already exsists in my working folder?
Thanks

回答(1 个)

Andrew Newell
Andrew Newell 2011-1-27
exist('data.xls','file')

产品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by