How to write multiple line for a condition in while or if

조회 수: 33 (최근 30일)
Anh Tran
Anh Tran 2019년 9월 11일
편집: Stephen23 2019년 9월 11일
I want to write a multiple line conditions to prevent a long line of condition
in C++ for example, I can do this
if a > b || \
... ||\
c > d{
//Something
}
Is there anyway to do something similar in matlab?

채택된 답변

David Hill
David Hill 2019년 9월 11일
Yes, with '...'
if a>b ||...
c>d ||...
d>e
%something
end

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by