Borrar filtros
Borrar filtros

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

1 visualización (últimos 30 días)
D_coder
D_coder el 16 de Sept. de 2018
Comentada: D_coder el 17 de Sept. de 2018
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 comentarios
dpb
dpb el 17 de Sept. de 2018
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 el 17 de Sept. de 2018
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

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Cell Arrays en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by