MATLAB: How can i add 1-40,41-80, 81-120 and so on till 14000 datapoints which is in a text file

data pointstext;

sir….i have a text file which consist of 14000 rows and 2 columns…. i have to add the 40 points each till 14000 data… means 1-40 , 41-80, 81-120 and so on… what should i do for that???

Best Answer

You have two columns, so
squeeze( sum( reshape(YourData, 40, [], 2) ) )