How to import an excel file from the web?
9 ビュー (過去 30 日間)
古いコメントを表示
I would like to import an excel spreadsheet which is on the intranet. I can click the file to download it when I am on that page. Now I am able to read the source code of that page using 'urlread', but not sure how to open the actual file.
Any clue?
Thanks,
Feng
0 件のコメント
採用された回答
Walter Roberson
2013 年 1 月 11 日
xlsread()
2 件のコメント
Walter Roberson
2013 年 1 月 12 日
urlread() of the download page will allow you to find the URL of the file itself; it will probably be in the form of a file: URL or possibly an http: or https: URL. Once you have extracted that URL, urlread() or urlwrite() the file itself.
その他の回答 (1 件)
Jan
2013 年 1 月 12 日
編集済み: Jan
2013 年 1 月 12 日
You can use URLREAD to read the Excel file, store it locally and use XLSREAD then.
Walter 's idea is better: urlwrite performs the storing to disk implicitly.
1 件のコメント
Walter Roberson
2013 年 1 月 12 日
urlwrite() might make more sense than urlread() in this circumstance.
参考
カテゴリ
Help Center および File Exchange で Spreadsheets についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!