calling c++ or c from octave?

David Bateman David.Bateman at motorola.com
Tue Nov 4 09:53:06 CST 2008


Francis Poulin wrote:
> Hello,
>
> I do research that involves a lot of number crunching.  I often write  
> or run codes in fortran/c to produce data that I then visualize and  
> analyze using octave.  It's a bit cumbersome at times going back and  
> forth and I wonder whether it is possible to do everything within  
> octave.
>
> I have read somewhere that it is possible to call programs written in c 
> ++ (or perhaps c?) from octave.  Is that true?  If so where can I find  
> a good tutorial on how to do this?  I found one or two on the web but  
> when I actually got around to trying it, the codes didn't actually  
> compile.  If there is a tutorial that someone could point out that  
> would be super. I am willing to learn c++ if I can have the easy  
> functionality of octave with the fast number crunching ability of a  
> lower level language.
>
> Cheers,
> Francis
>   

See

http://www.gnu.org/software/octave/doc/interpreter/Dynamically-Linked-Functions.html

D.


-- 
David Bateman                                David.Bateman at motorola.com
Motorola Labs - Paris                        +33 1 69 35 48 04 (Ph) 
Parc Les Algorithmes, Commune de St Aubin    +33 6 72 01 06 33 (Mob) 
91193 Gif-Sur-Yvette FRANCE                  +33 1 69 35 77 01 (Fax) 

The information contained in this communication has been classified as: 

[x] General Business Information 
[ ] Motorola Internal Use Only 
[ ] Motorola Confidential Proprietary



More information about the Help-octave mailing list