Info

Questa domanda è chiusa. Riaprila per modificarla o per rispondere.

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

2 visualizzazioni (ultimi 30 giorni)
jee young yoo
jee young yoo il 16 Ago 2019
Chiuso: MATLAB Answer Bot il 20 Ago 2021
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 Commenti
madhan ravi
madhan ravi il 16 Ago 2019
Also illustrate your need with an example.
Walter Roberson
Walter Roberson il 16 Ago 2019
You should have a look at findgroups() and possibly groupstats()

Risposte (0)

Questa domanda è chiusa.

Prodotti


Release

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by