

MATLAB differentiates between character strings and character arrays, while Octave does not. If ( exist ( 'startup.m', 'file' ) ) source ( 'startup.m' ) # load startup.m like MATLAB endif Character Strings and Arrays This page also contains notes on differences between things that are different between Octave (in traditional mode) and MATLAB.
#Matlab versions list code
This chapter documents instances where MATLAB's parser will fail to run code that will run in Octave, and instances where Octave's parser will fail to run code that will run in MATLAB.

Note: Octave can be run in "traditional mode" (by including the -traditional flag when starting Octave) which makes it give an error when certain Octave-only syntax is used. Octave and MATLAB users who must collaborate with each other need to take note of these issues and program accordingly. More recent versions of MATLAB introduced double quotes, but with different functionality to single quotes (albeit with some overlap in functionality). For example, Octave supports the use of both single and double quotes, whereas older versions of MATLAB only supported single quotes, which meant parsing errors occurred if you tried to use double quotes (e.g. However, Octave's parser allows some (often very useful) syntax that MATLAB's does not, so programs written for Octave might not run in MATLAB. GNU Octave is mostly compatible with MATLAB. Some of the differences that do exist between Octave and MATLAB can be worked around using "user preference variables." Extensibility in the form of user-defined functions.

#Matlab versions list portable
Chapter 1: Introduction Hello World MATLAB Workspace MATLAB Variables *.mat filesĬhapter 2: Basic MATLAB Concepts MATLAB's Command Prompt Data File I/OĬhapter 3: Variable Manipulation Numbers and Booleans Strings Portable Functions Complex Numbers ArraysĬhapter 4: Graphics Basic Graphics Commands Annotating PlotsĬhapter 5: M File Programming Scripts Comments The Input Function Control Flow Loops and Branches Error Messages MATLAB Caveats Debugging M FilesĬhapter 6: Advanced Topics Numerical Manipulation Advanced File I/O Object Oriented Programming Applications and Examples Toolboxes and ExtensionsĬhapter 7: Alternatives to MATLAB What is Octave ? Octave/MATLAB differences
