Is it possible to perform multiplication and update 'val' inside accumarray?
1 回表示 (過去 30 日間)
古いコメントを表示
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
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.
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Loops and Conditional Statements についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!