Checking file names

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 日

0 投票

exist('data.xls','file')

カテゴリ

ヘルプ センター および File ExchangeData Import from MATLAB についてさらに検索

製品

質問済み:

2011 年 1 月 27 日

Community Treasure Hunt

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

Start Hunting!

Translated by