I have a Table of dimension (49,702). I want to sum over the column values ranging from 1 to 115 and store it in another table of dimension (49,1). How can I go about doing that? TIA
DataPCorrected1 =
Table[1 + DataPCorrected[[j, i]], {j, 1, 49}, {i, 1, 115}];
In short, At each row value from 1 to 49, the column values from 1 to 115 gets added and stored. The final result should be a list of dimension {49,1}
Total[DataPCorrected[[All, 1 ;; 115]], {2}]– Ben Izd Jan 10 '22 at 18:22DataPCorrected[[All, 1 ;; 115]].ConstantArray[1,115]? – user1066 Jan 10 '22 at 20:14