Checking file names

17 ビュー (過去 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 Center および File ExchangeData Import from MATLAB についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by