Should I use "bsxfun" or implicit expansion?

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

 採用された回答

MathWorks Support Team
MathWorks Support Team 2019 年 5 月 14 日

0 投票

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 件のコメント

Co Melissant
Co Melissant 2021 年 9 月 14 日
編集済み: Co Melissant 2021 年 9 月 14 日
Note that until R2021a
bsxfun
is still needed in case you want to generate C/C++ code

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeElementary Math についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by