Which function should I use to find summation of specific values in a column array? I checked already histcounts function but I could not handle it.
2 views (last 30 days)
Show older comments
Commented: busra gogen on 6 May 2022
I need to find summation of last 10 terms in a column and continue with this interval until all the intervals are summed values in that column but my another issue is let's say I have 16 rows so last 10 rows are ok but the sum of remained 6 values are also should be calculated and the only difference btw the summation of 10 terms is their range so which functions should I check? I can do it by formulating but I am looking for a shortcut.
Matt J on 6 May 2022
Edited: Matt J on 6 May 2022
Let's call your matrix, A. Then,
A=rand(16,2); %hypothetical input
More Answers (0)
Find more on Resizing and Reshaping Matrices in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!