how to write or condition in if statement matlab?

H
Holden · Nov 28, 2020 · 2K views
Question
if (j==i) , or (flag(j)==1)
Expert Answer
Profile picture of Neeta Dsouza
Neeta Dsouza PhD Expert
Answered Aug 13, 2026
if (j==i) | (flag(j)==1)
    % your code 
end
Have a different question? Ask here

Get a Free Consultation or a Sample Assignment Review!