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

 Akzeptierte Antwort

MathWorks Support Team
MathWorks Support Team am 14 Mai 2019

0 Stimmen

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 Kommentar

Co Melissant
Co Melissant am 14 Sep. 2021
Bearbeitet: Co Melissant am 14 Sep. 2021
Note that until R2021a
bsxfun
is still needed in case you want to generate C/C++ code

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu MATLAB Coder finden Sie in Hilfe-Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by