octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Octave coding convention


From: Rik
Subject: Octave coding convention
Date: Tue, 16 Dec 2014 08:46:41 -0800

12/16/14

Juan,

One change I would make to your patch is to follow the Octave coding
convention of having parentheses around the condition being tested in an if
clause.

+          if dx < 1
+            dx       = 0.5;
+            x_origin = 0.75;
+          endif

=>

+          if (dx < 1)
+            dx       = 0.5;
+            x_origin = 0.75;
+          endif

Otherwise it looks fine.

--Rik




reply via email to

[Prev in Thread] Current Thread [Next in Thread]