Jump to navigation Jump to search

Octave style guide

65 bytes added, 12:40, 12 March 2018
→‎Variable names: fix formatting
=== Variable names ===
Avoid reusing the names of other functions as local variable names. Forexample, try to avoid naming local variables ''{{codeline|abs''}}, ''{{codeline|log''}}, or ''{{codeline|pow''}}. These functions may be used in a later change and may lead to confusingerrors.
An exception is the use of ''{{codeline|i'' }} and ''{{codeline|j'' }} as loop indices. If a functionhas nothing to do with complex arithmetic, it is common and acceptable touse ''{{codeline|i'' }} and ''{{codeline|j'' }} as local variables in for loops.
== Quoted Strings ==


Navigation menu