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

37 ビュー (過去 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 Center および File ExchangeImage Processing Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by