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

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 日

0 投票

Yes, with '...'
if a>b ||...
c>d ||...
d>e
%something
end

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeSimulink についてさらに検索

質問済み:

2019 年 9 月 11 日

編集済み:

2019 年 9 月 11 日

Community Treasure Hunt

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

Start Hunting!

Translated by