Attempted to access k(1); index out of bounds because numel(k)=0.

Show me the latest data collection results.

This trend is disabled and will not collect data until re-enabled.

**Last ran:**almost 2 years ago.**Auto-run in:**over 1 year.**Created on:**24 Feb 2012

data points

Disabled

Kaggle is a platform for data prediction competitions that allows organizations to post their data and have it scrutinized by the world's best data scientists. This tracks the total prize value of active competitions on Kaggle.

Time Recorded (time1487) | Data (data1487) |
---|---|

08 Jul 2012 06:19:40 | NaN |

07 Jul 2012 06:21:00 | NaN |

06 Jul 2012 06:18:10 | NaN |

05 Jul 2012 06:16:56 | NaN |

04 Jul 2012 06:16:19 | NaN |

url = 'http://kaggle.com/competitions'; page = urlread(url); % Get number of active competitions count = urlfilter(page, 'found,'); % Get the total prizes prizes = zeros(count,1); for i = 1:count % Find the number amt = urlfilter(page, 'tr class'); % Format the number into a dollar amount if amt == 2012 k = strfind(page, '$'); page = page(k(1):end); amt = urlfilter(page, '$'); end pattern = ['$' ... regexprep(num2str(amt), ... '(\d)(?=(\d{3})+$)','$1,')]; % Find the starting index of the number k = strfind(page, pattern); if ~isempty(k) % There was a match % Store the prize amount prizes(i) = amt; % Prepare for the next iteration page = page(k(1)+length(pattern):end); else % There was no match % The number was not prize amount, no '$' sign % Use the number without formatting if amt == 2012 pattern = [' ' num2str(amt)]; else pattern = num2str(amt); end % Find the starting index of the number k = strfind(page, pattern); % Eliminate the unnecessary page content page = page(k(1)+length(pattern):end); % Moving on to the next number amt = urlfilter(page, 'tr class'); % Format the next number into a dollar amount pattern = ['$' ... regexprep(num2str(amt), ... '(\d)(?=(\d{3})+$)','$1,')]; % Find the starting index of the number k = strfind(page, pattern); % Store the prize amount prizes(i) = amt; % Prepare for the next iteration page = page(k(1)+length(pattern):end); end end updatetrend(sum(prizes))

## 0 comments