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 Exchange에서 MATLAB Coder에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by