Info
Questa domanda è chiusa. Riaprila per modificarla o per rispondere.
using or (||) with ismember function
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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
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.
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!