Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

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

조회 수: 2 (최근 30일)
jee young yoo
jee young yoo 2019년 8월 16일
마감: MATLAB Answer Bot 2021년 8월 20일
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
madhan ravi
madhan ravi 2019년 8월 16일
Also illustrate your need with an example.
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