|
From: | Henk Borsje |
Subject: | RE: Taking a mean of a fixed length number of points |
Date: | Sat, 30 Nov 2019 10:21:38 +0100 |
Here is a simple example: n = 1000000; m = 10; k = 5; a = rand(n,m); tmp = reshape(a,k,[],m); size(tmp) aavg = reshape(mean(tmp),[],m); size(aavg) aavg(1,1) mean(a(1:k,1)) Henk Borsje From: Nicholas Jankowski <address@hidden> On Fri, Nov 29, 2019 at 4:12 PM Henk Borsje <address@hidden> wrote:
just for clarity, can you give a brief example of what your input looks like and what you would like the output to look like? it seems your method is fairly compact. |
[Prev in Thread] | Current Thread | [Next in Thread] |