Checking file names
Show older comments
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
Answers (1)
Andrew Newell
on 27 Jan 2011
exist('data.xls','file')
Categories
Find more on Data Import from MATLAB in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!