Question: Help with loops to create matrix. I have to write it in Julia, but can translate it myself from C if this is preferred. I
Help with loops to create matrix. I have to write it in Julia, but can translate it myself from C if this is preferred.
I have to implement a 198*198 binary matrix, which is equal to 1, if the team that play match A, plays match B next. Game A is the row and game B is the column.
I have a 31*198 binary matrix team_match, which is 1 if the team plays the game and 0 otherwise.
Below is a sample of the matrix.

team_match-falses (31,198) team-match[1 ,9 -true team-match[1 ,29-true team-match[1 ,48]=t rue team match [1 69 1-true team_match [1 ,87 ]-true teammatch[1 ,93]=t rue team_match[1 ,116]-true team-match[1 ,137-true team match [1 ,144 ]=true team_match[1 ,167]-true team match[1 ,187-true team-match [2 ,13]=true team match [2 ,24]=true team_match [2 ,39 J-true team-match[2 ,66]=t rue team match [2 ,76]=true team-match [2 ,96-true team_match[2 ,114]-true teammatch[2 ,134 strue team-match[2 ,159-true team match[2 1761strue teammatch[2 ,180]strue team-match [3 , 16-true team_match[3 ,28 ]-true team match [3 ,45 1-true team_match [3 ,54 ]-true team-match[3 ,77-true team match[3 ,1001-true team_match [3 ,117]-true team match[3 ,137]-true team match[3 ,1571strue team_match [3 ,170]-true
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
