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

 Réponse acceptée

MathWorks Support Team
MathWorks Support Team le 14 Mai 2019

0 votes

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 commentaire

Co Melissant
Co Melissant le 14 Sep 2021
Modifié(e) : Co Melissant le 14 Sep 2021
Note that until R2021a
bsxfun
is still needed in case you want to generate C/C++ code

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Elementary Math dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by