Matlab: urlread and textscan to retrieve html data

429 views Asked by At

This is probably a basic question, but I'm new to MATLAB and have been struggling with it for a while. I'm trying to import data from a website using urlread. I can import the data into a cell but it is in html form and I lose all the table formatting. I thought I'd be able to retrieve it using textscan, but I end up with empty cells. The code I'm using is below. I've also tried saving the page and importing it using uiimport, with no luck.

data = urlread('http://www.extraskater.com/team/montreal-canadiens/2013/gamelog?sort=game');
readData = textscan(data, '%f %s %f %f %f %f %f %f %f %f %f %f %f %f %f %f', 'delimiter');
0

There are 0 answers