From help-request at octave dot org Thu Mar 16 08:32:17 2006 Subject: Writing Matlab-compatible scripts From: Geraint Paul Bevan To: help at octave dot org Date: Thu, 16 Mar 2006 14:27:42 +0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Paul Kienzle wrote: > The argument for supporting this can be made for a number > of people. E.g., students working on their own version at home > of the problem who have to hand it in to the professor who will > test it on matlab. People collaborating with matlab users on a > project. Toolbox writers who want to have their code run on Matlab. Regardless of the arguments for a Matlab compatibility switch, a suggestion for people in that position, if they use emacs, is to use the matlab-mode, defined in matlab.el, instead of octave-mode when writing their code. With maximum decoration enabled, the matlab-mode highlights recognised operators (e.g. +, but not +=) and changes the colour of recognised strings (enclosed in '', but not ""). It also doesn't recognise # comments or keywords of the form endif, endfunction. Consequently, it provides a good visual indication of whether the code should be parsed correctly by Matlab. - -- Geraint Bevan http://www.mech.gla.ac.uk -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iEYEARECAAYFAkQZddwACgkQcXV3N50QmNPXbACffxGmrEGEz+ZxsNw7vtfC9L8p vSoAn1XMYWs6qFHHzwnrR4ysgJ3lhInR =hnuT -----END PGP SIGNATURE----- ------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------