Azzera filtri
Azzera filtri

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

1 visualizzazione (ultimi 30 giorni)
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.

Risposta accettata

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

Più risposte (1)

balandong
balandong il 2 Dic 2016
Thanks for the response,appreciate it

Categorie

Scopri di più su Execution Speed in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by