フィルターのクリア

How can I use "OR" in this situation? I want it to show if x==2 or d~=0

1 回表示 (過去 30 日間)
Bror Markus Salmelin
Bror Markus Salmelin 2017 年 10 月 5 日
編集済み: jean claude 2017 年 10 月 5 日
if x==2
disp('Given value is a prime!')
elseif d~=0
disp('Given value is a prime!')
end

採用された回答

jean claude
jean claude 2017 年 10 月 5 日
編集済み: jean claude 2017 年 10 月 5 日
if x==2 || d~=0
disp('Given value is a prime!')
end

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDiscrete Math についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by