how to write or condition in if statement matlab?

Illustration
Holden - 2020-11-28T11:18:22+00:00
Question: how to write or condition in if statement matlab?

if (j==i) , or (flag(j)==1)

Expert Answer

Profile picture of Neeta Dsouza Neeta Dsouza answered . 2025-11-20

if (j==i) | (flag(j)==1)
    % your code 
end


Not satisfied with the answer ?? ASK NOW

Get a Free Consultation or a Sample Assignment Review!