Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Octave - .m-File Compiler?

I know that with Matlab it is possible to compile the scripts / functions as an executable which can then be a standalone version together with Matlab Compiler Runtime.

Is there any possible way to compile .m-files associated with octave as an executable program in a way that the .m-files aren't needed anymore for it to run?

I would like to a have a standalone version of the script (possibility together with octave libraries / dlls) without the necessity of the .m-Files.

like image 633
oszd93 Avatar asked Jul 16 '14 11:07

oszd93


People also ask

How do I run an M file in Octave?

Simply type the filename without extension . Type run("filename. m") in the command line of Octave . Then press ctrl + c to exit the file in middle of the run .

Does Octave have a compiler?

The JIT compiler is a very new feature in Octave and not all valid Octave statements can currently be accelerated. However, if no other technique is available it may be worth benchmarking the code with JIT enabled.

Can I run MATLAB code in Octave?

Octave is mostly compatible with Matlab. Most matlab functions can be made to run with very little change. With careful coding, you can get your code to run without change in Matlab and Octave.


1 Answers

I believe it is, see for example How do I create a simple Octave distributable without installing Octave, which references the relevant part of the documentation. However, I have never tried it, and it doesn't appear to be that straightforward (at first impression at least).

like image 122
am304 Avatar answered Oct 07 '22 23:10

am304