Hi, I don't know what the right terminology is, but I'd like to know if there is a nice vectorized syntax for calculating a 'chunked' average/max/etc over a vector. Basically for any given average/max/etc type function, I'd like to do something like this:
for chunk = 1:num_chunks chunked_max(chunk) = average(input(chunk_start_index(chunk):chunk_end_index(chunk)));end
Thanks for your thoughts!
Best Answer