help-octave
[Top][All Lists]
Advanced

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

Re: Using Octave functions in c++


From: Mike Miller
Subject: Re: Using Octave functions in c++
Date: Mon, 13 Jan 2020 11:42:31 -0800

On Mon, Jan 13, 2020 at 17:09:30 +0000, david myers wrote:
> Is there any way of making use of Octave's functionality in a c++ program?
> I've seen Octave and c++ mentioned together quite a lot but is it actually
> possible to use Octave's functions in c++? For example, could I create an
> FIR filter using the fir2 function and return the results to a
> vector inside c++, just like you would do in Octave itself?
> Really appreciate any help on this, thanks!

Yes, if you embed the Octave interpreter in your C++ program, and
convert the arguments and return values to and from Octave types. Take a
look at https://octave.org/doc/interpreter/Standalone-Programs.html for
some description and examples.

Cheers,

-- 
mike

Attachment: signature.asc
Description: PGP signature


reply via email to

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