Clear Filters
Clear Filters

how to create three conditions in the same if statement?

10 views (last 30 days)
How to write if statment with three conditons? this is my code:
if C(i,1)<= A || N(i,1)> B
and I want to add this to the condition:
|| x>=y

Answers (1)

madhan ravi
madhan ravi on 3 Jun 2020
if (C(i,1)<= A) || (N(i,1)> B) || (x>=y)

Community Treasure Hunt

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

Start Hunting!