3.85714

3.9 | 8 ratings Rate this file 71 Downloads (last 30 days) File Size: 27.58 KB File ID: #22465
image thumbnail

Get HTML Table Data into MATLAB

by Jeremy Barry

 

16 Dec 2008 (Updated 27 Sep 2010)

Identify tables and interactively select the data to bring into MATLAB.

Editor's Notes:

This file was selected as MATLAB Central Pick of the Week

| Watch this File

File Information
Description

Through the MATLAB Web Browser tables are identified and are interactively selected and the data is imported into MATLAB as a cell array.

Acknowledgements
This submission has inspired the following:
Get HTML-table data into MATLAB via urlread and without builtin browser
MATLAB release MATLAB 7.7 (R2008b)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (11)
16 Dec 2008 Kalev  
16 Dec 2008 Kalev  
18 Dec 2008 Anders Brun

Nice thing. Too bad the Matlab web browser doesn´t have the same functionality as other browsers though... I could not even load the page that I am most interested in importing. Then again, I could ofcourse save this page as HTML using Firefox, Safari or Explorer and then use your tool to import it into Matlab, which is nice since I don´t have to open up Excel.

11 Jan 2010 Michael Solis Chacon

Don't work for me, any suggestion

>> getTableDataScript
??? Attempt to reference field of non-structure array.

Error in ==> getTableFromWeb>updateHTML at 47
pageString = reshape(url.toCharArray, 1, []);

Error in ==> getTableFromWeb at 36
newUrlText = updateHTML(urlText);

Error in ==> getTableDataScript at 14
getTableFromWeb

17 Sep 2010 Yuri Kotliarov

Even better which(mfilename)

17 Sep 2010 Yuri Kotliarov

Sorry, somehow I didn't send the full comment. This is great tool and I looked for such functionality in MATLAB. One issue is that it searching for the icon in current directory. It better to store it together with the function. Use fileparts(which(mfilename)) instead of pwd.

24 Sep 2010 Yuri Kotliarov

Unfortunately does not take properly table with rowspan (probably colspan as well, I didn't test).

01 Oct 2010 Savas

Thanks!

09 Dec 2010 Sven Körner

Great Tool!

24 Jan 2011 Grace

Great tool! I've been using it to download daily stock option price for a class assignment. So cool to have this automatically down

22 Feb 2011 Jesse Blocher  
Please login to add a comment or rating.
Updates
27 Sep 2010

Changed resolution of icon location.

27 Sep 2010

Added copyright tags

Tag Activity for this File
Tag Applied By Date/Time
html Cristina McIntire 16 Dec 2008 11:20:38
table Cristina McIntire 16 Dec 2008 11:20:38
regexp Cristina McIntire 16 Dec 2008 11:20:38
data Cristina McIntire 16 Dec 2008 11:20:38
cell array Cristina McIntire 16 Dec 2008 11:20:38
import Cristina McIntire 16 Dec 2008 11:20:38
potw Helen Chen 20 Aug 2010 12:33:55
html Jon Cherrie 21 Aug 2010 07:23:12
html Jeremy Barry 28 Sep 2010 10:58:35
import Jeremy Barry 28 Sep 2010 10:58:36
table Jeremy Barry 28 Sep 2010 10:59:03
pick of the week Jiro Doke 11 Feb 2011 20:05:33

Contact us at files@mathworks.com