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

17 次查看(过去 30 天)
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 中查找有关 Logical 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by