Azzera filtri
Azzera filtri

Info

Questa domanda è chiusa. Riaprila per modificarla o per rispondere.

using or (||) with ismember function

2 visualizzazioni (ultimi 30 giorni)
Muazma Ali
Muazma Ali il 27 Set 2019
Chiuso: MATLAB Answer Bot il 20 Ago 2021
result_var=[ 1 7 10];
if (all(ismember(result_var,[ 1 7 10]))||all(ismember(result_var, [2 7 10])))
disp('hei')
end
% i dont get any result when I execute these statements on the Matlab command window..
  2 Commenti
Matt J
Matt J il 27 Set 2019
You should get a result. I do.
Stephen23
Stephen23 il 28 Set 2019
>> if (all(ismember(result_var,[ 1 7 10]))||all(ismember(result_var, [2 7 10])))
disp('hei')
end
hei
>>

Risposte (0)

Questa domanda è chiusa.

Community Treasure Hunt

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

Start Hunting!

Translated by