Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

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

2 vues (au cours des 30 derniers jours)
jee young yoo
jee young yoo le 16 Août 2019
Clôturé : MATLAB Answer Bot le 20 Août 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 commentaires
madhan ravi
madhan ravi le 16 Août 2019
Also illustrate your need with an example.
Walter Roberson
Walter Roberson le 16 Août 2019
You should have a look at findgroups() and possibly groupstats()

Réponses (0)

Cette question est clôturée.

Produits


Version

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by