Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

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

2 visualizaciones (últimos 30 días)
jee young yoo
jee young yoo el 16 de Ag. de 2019
Cerrada: MATLAB Answer Bot el 20 de Ag. de 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 comentarios
madhan ravi
madhan ravi el 16 de Ag. de 2019
Also illustrate your need with an example.
Walter Roberson
Walter Roberson el 16 de Ag. de 2019
You should have a look at findgroups() and possibly groupstats()

Respuestas (0)

La pregunta está cerrada.

Etiquetas

Productos


Versión

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by