필터 지우기
필터 지우기

Is it possible to perform multiplication and update 'val' inside accumarray?

조회 수: 1 (최근 30일)
D_coder
D_coder 2018년 9월 16일
댓글: D_coder 2018년 9월 17일
An accumarray function is defined as
A = accumarray(subs,val,sz)
I am running accumarray function in a loop , Is it possible to do
val = val.*another_matrix
inside the accumarray function?
  댓글 수: 2
dpb
dpb 2018년 9월 17일
Directly as such, no.
How about a (smallish) example of what you're actually trying to compute? Perhaps an actual example would lead to some alternative methods.
D_coder
D_coder 2018년 9월 17일
Want to compute this and while loop is called for about 9000 times
while condition
val = val.*another_matrix;
A = accumarray(subs,val,sz)
end

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Cell Arrays에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by