help-octave
[Top][All Lists]
Advanced

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

Re: calling c++ or c from octave?


From: Sergei Steshenko
Subject: Re: calling c++ or c from octave?
Date: Tue, 4 Nov 2008 10:57:18 -0800 (PST)



--- On Tue, 11/4/08, Francis Poulin <address@hidden> wrote:

> From: Francis Poulin <address@hidden>
> Subject: calling c++ or c from octave?
> To: address@hidden
> Date: Tuesday, November 4, 2008, 7:41 AM
> 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
> _______________________________________________
> Help-octave mailing list
> address@hidden
> https://www-old.cae.wisc.edu/mailman/listinfo/help-octave

You may start from here: http://wiki.octave.org/wiki.pl?CodaTutorial .

I am using a different approach - I am writing data in binary format from
"C" using "fwrite" and load the data into 'octave' using 'fopen', 'fread'
in 'octave'. Works like a charm.

Regards,
  Sergei.


      


reply via email to

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