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

37 Ansichten (letzte 30 Tage)
Anh Tran
Anh Tran am 11 Sep. 2019
Bearbeitet: Stephen23 am 11 Sep. 2019
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?

Akzeptierte Antwort

David Hill
David Hill am 11 Sep. 2019
Yes, with '...'
if a>b ||...
c>d ||...
d>e
%something
end

Weitere Antworten (0)

Kategorien

Mehr zu Image Processing Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by