About this document ...

Why using Octave in your C/C++ programs?

I am using Octave in my C++ programs for quite a while. Since I was always used to program in C++, but most of the scientific mathematical libraries are in fortran, Octave was a nice possibility for me to further write C programs. Furthermore it also includes lot of the powerful fortran tools and provides thus a C++ frontend to those routines. Thus it is possible to use the functionality of Octave together with a lot of other libraries and functions in one single C++ project.

Unfortunately the documentation of how to use octave as a library is not very detailed. This made me to write down all the things I needed in the last years. Maybe there are some other people who also would like to use Octave directly in their C/C++ programs and I hope that this helps them to get started with it.

If you are indeed planning to start with using Octave please also have a look on the following helpful webpages:

If you would like to print out this manual, find a printable version in different formats following the links below:


Furthermore it would be very kind of you to give me some feedback concerning this tutorial. Of course some errors are unavoidable on such sites. Would you please let me know if you have found some? I am also interested in tips and tricks to make things easier, further Octave functions and how to use them, or simply in if you found this homepage helpful or not. Please contact me under:


Find some more information about me and further contact details on my homepage:


Of course I am not able to guarantee that the small code examples work also with your system, i.e., nothing is guaranteed and you use everything at your own risk. The examples are tested with the octave version 2.1.73 and work fine at different systems even at an infiniband cluster computer. I checked the given links and hope that they work fine. However I declare that I am not responsible for the contents of those pages.

This document was generated using the LaTeX2HTML translator Version 2002-2-1 (1.71)

Copyright © 1993, 1994, 1995, 1996, Nikos Drakos, Computer Based Learning Unit, University of Leeds.
Copyright © 1997, 1998, 1999, Ross Moore, Mathematics Department, Macquarie University, Sydney.

The command line arguments were:
latex2html -split 4 Howto_Octave.tex

The translation was initiated by Mathias Michel on 2007-07-12