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

17 visualizzazioni (ultimi 30 giorni)
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?

Risposta accettata

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

Più risposte (0)

Community Treasure Hunt

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

Start Hunting!

Translated by