how to write or condition in if statement matlab?
64 ビュー (過去 30 日間)
古いコメントを表示
if
(j==i) , or (flag(j)==1)
0 件のコメント
採用された回答
その他の回答 (1 件)
Shwetank Shrey
2019 年 6 月 21 日
Check out the documentation:
if (j == i) || (flag(j) == 1)
% do something
end
6 件のコメント
参考
カテゴリ
Help Center および File Exchange で Matrix Indexing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!