I am downloading data from the internet using 'urlread' function. I am using this to analyse football stats for my betting. So there are columns for HomeTeam, AwayTeam, Shots, Possesion etc.. I want all these columns to be of the same type! Preferably just numbers. I tried doing a for loop with if statements trying to highlight certain columns to change them from, say, 'Arsenal' to just a 1. (This is because arsenal is first alphabetically) So something like
for ii=1:height(data) % This makes sure it goes through all the rows. ./
if data(ii,1)=='Arsenal' data(ii,1)=1; %Data is just matrix with statistics.
end
end
The error message I get is ''Undefined operator '==' for input arguments of type 'table'.''
Best Answer