Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

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

2 Ansichten (letzte 30 Tage)
jee young yoo
jee young yoo am 16 Aug. 2019
Geschlossen: MATLAB Answer Bot am 20 Aug. 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 Kommentare
madhan ravi
madhan ravi am 16 Aug. 2019
Also illustrate your need with an example.
Walter Roberson
Walter Roberson am 16 Aug. 2019
You should have a look at findgroups() and possibly groupstats()

Antworten (0)

Diese Frage ist geschlossen.

Produkte


Version

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by