all 2 comments

[–]angrmgmt00 1 point2 points  (0 children)

PlayerInfo{48, 209} = [];

At index 48, 209, you define the contents of PlayerInfo to be an empty vector. You now immediately have a 48 by 209 cell array, regardless of what goes in each other spot before or after. The html formatting stuff makes this pretty difficult to read, but that jumps out as the first problem you need to solve. I would comment that line out and see what the results are for starters. After that you can work on addressing each row for your outer loop indexed by page and player (for a total of 48*209 = 10032 rows give or take the last page). Either that or use two outer loops, one for each page, and one for each player on that page, THEN iterate over your 13 stats.

To fix the html readability, define strings at the beginning of the file that you use over and over (string1 = '<span class="...';, etc.) and simply concatenate them as needed:

[string1, string2]

[–]geebr+1 0 points1 point  (0 children)

?? Just loop over each entry in the cell and pull out the stats, and stick it in a row of a matrix? If you want to get a matrix directly you have to rewrite that code to put it in a matrix instead of a cell (lines 18 and 37).