xlsread doesn't recognize file has changed

4 ビュー (過去 30 日間)
John Petersen
John Petersen 2016 年 1 月 18 日
コメント済み: dpb 2016 年 1 月 18 日
I have a .xlsx file that I read with xlsread. However, if I change the file and call it with xlsread again, it returns the old values. I've tried clear all, clear('myfile.xlsx'), pack, fclose all, but nothing seems to make the xlsread read the newly modified file, except for restarting matlab. How can I force it to read in the new file? And yes, I have saved the new file.(using 2015asp1)
  3 件のコメント
John Petersen
John Petersen 2016 年 1 月 18 日
It looks like it may have been a problem with excel, because after I saved the file then closed it, I reopened it and it had the old data again -- not the recently "saved" data. I edited again and now it seems to be behaving. properly.
dpb
dpb 2016 年 1 月 18 日
Ah so...I've had some "issues" with Excel, too, so wouldn't surprise me. Perhaps there was another session that hadn't closed properly and was holding the file handle or the like...

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeSpreadsheets についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by