How to check the sum of a fixed row interval, as the interval steps forward by 1 throughout a 8784x1 vector?
1 view (last 30 days)
Show older comments
I've tried to use the reshape command, but the following;
reshape(sum(reshape(sensor_data,6,[])),[],1)
only summing 6 rows succesive at each calculation. I want to iteratively move (by 1) the fixed 6-row interval throughout the 8784 rows calculating the sum of that specific interval at each step.
2 Comments
James Tursa
on 6 Oct 2017
Please provide a short example. E.g., with a specific 24-element vector (1:24)', what would be the desired result?
Answers (1)
Star Strider
on 6 Oct 2017
4 Comments
Cedric
on 7 Oct 2017
Hi Star, my pleasure!
(I had 5 minutes to kill on my cell phone while waiting for someone, and that did the trick ;) )
See Also
Categories
Find more on 2-D and 3-D Plots 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!