help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Convert Octave .m file to an executable


From: Rob Mahurin
Subject: Re: Convert Octave .m file to an executable
Date: Fri, 7 Aug 2009 11:05:51 -0400

On Aug 7, 2009, at 1:45 AM, jolgin.main wrote:
I'm working in Octave, and was wondering if there is a way to construct
a stand-alone, executable file (i.e. a.out file).  I know that mablab
uses the "mcc " to do so, but was wondering if Octave has that
capability.  Thank you for your help.

If you begin your .m file with
        #!/usr/bin/octave -q

(or wherever your Octave lives, if not /usr/bin), and set the executable permission bit, then you can run the file from the command line. This is more like shell script or a perl script than a standalone executable.

Writing an "occ" would be a big project.

Rob

--
Rob Mahurin
University of Manitoba, Dept. of Physics & Astronomy
at:     Oak Ridge National Laboratory   865 207 2594
        Oak Ridge, Tennessee            address@hidden






reply via email to

[Prev in Thread] Current Thread [Next in Thread]