MATLAB Compatibility
Octave has been built with MATLAB compatibility in mind, and shares many features with MATLAB:
- Matrices as fundamental data type.
- Built-in support for complex numbers.
- Powerful built-in math functions and extensive function libraries.
- Extensibility in the form of user-defined functions.
There are a few purposeful, albeit minor, differences:
- Comment lines can be prefixed with the # character as well as the % character
- Various C-based operators ++, --, +=, *=, /= are supported
- Elements can be referenced without creating a new variable, e.g. (3)
- Strings can be defined with the " character as well as the ' character
- When the type of the variable is single Octave calculates "mean" in the single-domain (Matlab in double-domain) which is faster but gives less accurate results.
Read more about this topic: GNU Octave