MATLAB Answers

Anh Tran

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

Asked by Anh Tran
on 11 Sep 2019
Latest activity Edited by Stephen Cobeldick on 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{
Is there anyway to do something similar in matlab?

1 Answer

Answer by David Hill
on 11 Sep 2019
 Accepted Answer

Yes, with '...'
if a>b ||...
c>d ||...

  1 Comment

Sign in to comment.