how to write or condition in if statement matlab?
55 views (last 30 days)
Show older comments
Sultan Mehmood
on 21 Jun 2019
Commented: Sultan Mehmood
on 21 Jun 2019
if
(j==i) , or (flag(j)==1)
0 Comments
Accepted Answer
More Answers (1)
Shwetank Shrey
on 21 Jun 2019
Check out the documentation:
if (j == i) || (flag(j) == 1)
% do something
end
6 Comments
See Also
Categories
Find more on Matrix Indexing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!