How to used the combination between "bsxfun" and "operator AND"

1 次查看(过去 30 天)
Dear Coder, May I know any working example to application of bsxfun and operator AND. For example, we want to compare an array if C == 0 AND C == FALSE.

采纳的回答

Walter Roberson
Walter Roberson 2016-12-2
B = logical(randi([0 1], 15, 1));
C = randi([0 5], 1, 10, 'uint8');
bsxfun(@and, C == 0, ~B)

更多回答(1 个)

balandong
balandong 2016-12-2
Thanks for the response,appreciate it

类别

Help CenterFile Exchange 中查找有关 Execution Speed 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by