Checking file names

20 次查看(过去 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')

类别

Help CenterFile Exchange 中查找有关 Data Import from MATLAB 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by