how to write or condition in if statement matlab?

조회 수: 56 (최근 30일)
Sultan Mehmood
Sultan Mehmood 2019년 6월 21일
댓글: Sultan Mehmood 2019년 6월 21일
if
(j==i) , or (flag(j)==1)

채택된 답변

Akshay Malav
Akshay Malav 2019년 6월 21일
if (j==i) | (flag(j)==1)
% your code
end

추가 답변 (1개)

Shwetank Shrey
Shwetank Shrey 2019년 6월 21일
Check out the documentation:
if (j == i) || (flag(j) == 1)
% do something
end
  댓글 수: 6
madhan ravi
madhan ravi 2019년 6월 21일
What is i here , loop iterator?
Sultan Mehmood
Sultan Mehmood 2019년 6월 21일
yes
i=1:65536;
L=65536;

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Data Export to MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by