Reading website table into matrix
1 view (last 30 days)
Show older comments
Matthew Schafer
on 5 Oct 2015
Commented: Star Strider
on 6 Oct 2015
I am trying to read a table from a website into a matrix for further processing.
The website is : http://wateroffice.ec.gc.ca/report/report_e.html?mode=Table&type=realTime&stn=08GB014&dataType=&startDate=2015-09-28&endDate=2015-10-05&prm1=46&prm2=47
I tried using urlread. My plan was to read it in as a string and then pull out what I needed. But the string thats input doesn't have the table data in it that I can see. I am guessing I should be using a different function but am struggling to find one that works for me.
0 Comments
Accepted Answer
Star Strider
on 5 Oct 2015
Looking at that site, from the way it’s organised, I doubt you would be able to do what you want. You probably have to get the data manually, and just save it to a text file. (I didn’t go past the ‘Historical Data’ -> ‘Statistics Data’ pages, so I don’t know precisely what the options are.)
2 Comments
Star Strider
on 6 Oct 2015
My pleasure.
I wish I could have provided a real working solution, but the complexity of the choices required on that site are beyond my Web programming abilities.
More Answers (0)
See Also
Categories
Find more on Tables in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!