Filter löschen
Filter löschen

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

1 Ansicht (letzte 30 Tage)
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.

Akzeptierte Antwort

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

Weitere Antworten (1)

balandong
balandong am 2 Dez. 2016
Thanks for the response,appreciate it

Kategorien

Mehr zu Execution Speed finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by