Info
La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.
using or (||) with ismember function
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Stephen23
el 28 de Sept. de 2019
>> if (all(ismember(result_var,[ 1 7 10]))||all(ismember(result_var, [2 7 10])))
disp('hei')
end
hei
>>
Respuestas (0)
La pregunta está cerrada.
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!