FAQ: Difference between revisions

2 bytes added ,  28 November 2011
Line 661: Line 661:
===Octave extensions===
===Octave extensions===


The extensions in Octave over Matlab syntax are very useful, but might cause issues when sharing with Matlab users. A list of the major extensions that should be avoided to be compatible with Matlab are
The extensions in Octave over Matlab syntax are very useful, but might cause issues when sharing with Matlab users. A list of the major extensions that should be avoided to be compatible with Matlab are:
 
Comments in octave can be marked with <tt>#</tt>. This allows POSIX systems to have the first line as <tt>#! octave -q</tt> and mark the script itself executable. Matlab doesn't have this feature due to the absence of comments starting with <tt>#</tt>".
Comments in octave can be marked with <tt>#</tt>. This allows POSIX systems to have the first line as <tt>#! octave -q</tt> and mark the script itself executable. Matlab doesn't have this feature due to the absence of comments starting with <tt>#</tt>".