Info

此问题已关闭。 请重新打开它进行编辑或回答。

How can I set non-consecutive 'val' for 'accumarray'?

1 次查看(过去 30 天)
Hello,
simple question.
Is it available to set val from 'accumarray(x,val)' which is non-consecutive?
For example,
x = size of (1500, 1 ) double , // interestrates actually,
y = size of (1500, 1 ) timestamp,
I'd like to compress y with yyyyMMWW, and x with average of matched column.
but it seems 'val' is not possbile to use with non-consecutive.
B.RGDS/Jeremy
  3 个评论
Walter Roberson
Walter Roberson 2019-8-16
You should have a look at findgroups() and possibly groupstats()

回答(0 个)

标签

产品


版本

R2019a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by