Is Octave

Returns true when code is executing in GNU Octave.

You are now following this Submission

Returns false when code is executing in MATLAB or another MATLAB variant.

Cite As

Kurt von Laven (2026). Is Octave (https://www.mathworks.com/matlabcentral/fileexchange/28847-is-octave), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.4

Marked IsOctave.m user-executable. Removed trailing whitespace and switched from 2 spaces after each period to 1 in the interest of readability.

1.3.0.0

Made code available as a toolbox. No changes were made to the source code itself.

1.2.0.0

Replaced tabs with spaces so that the source code displays consistently in all text editors.

1.1.0.0

Optimized code.

1.0.0.0