Should I use "bsxfun" or implicit expansion?

Which one is better, "bsxfun" or implicit expansion whenever possible?

 Respuesta aceptada

MathWorks Support Team
MathWorks Support Team el 14 de Mayo de 2019

0 votos

It is now recommended that you replace most uses of bsxfun with direct calls to the functions and operators that support implicit expansion. Compared to using bsxfun, implicit expansion offers faster speed of execution, better memory usage, and improved readability of code.

1 comentario

Co Melissant
Co Melissant el 14 de Sept. de 2021
Editada: Co Melissant el 14 de Sept. de 2021
Note that until R2021a
bsxfun
is still needed in case you want to generate C/C++ code

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre MATLAB Coder en Centro de ayuda y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by