フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

using or (||) with ismember function

2 ビュー (過去 30 日間)
Muazma Ali
Muazma Ali 2019 年 9 月 27 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
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 件のコメント
Matt J
Matt J 2019 年 9 月 27 日
You should get a result. I do.
Stephen23
Stephen23 2019 年 9 月 28 日
>> if (all(ismember(result_var,[ 1 7 10]))||all(ismember(result_var, [2 7 10])))
disp('hei')
end
hei
>>

回答 (0 件)

この質問は閉じられています。

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by