Info

This question is closed. Reopen it to edit or answer.

How do I sum the points from all the innings of each game on each team?

1 view (last 30 days)
How do i sum the points from all the innings of each game on each team? I need code tha says gameTotals = [.........]

Answers (1)

David Hill
David Hill on 24 Jul 2020
readtable();
a=table2array();%look at this command
opp=sum(a(:,1:9),2);
us=sum(a(:,10:18),2);
%create new table for printing

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!