[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Example how tu use interpn in a c++ program
From: |
Jaroslav Hajek |
Subject: |
Re: Example how tu use interpn in a c++ program |
Date: |
Mon, 8 Jun 2009 13:09:51 +0200 |
On Mon, Jun 8, 2009 at 12:52 PM, Paola Madonna<address@hidden> wrote:
> Hi,
>
> In a Matlab application we used the interpn function to compute a generic
> element in a four dimensional look-up table. Now we have to implement this
> function in a c++ program but we want to use the octave interpn function
> which has the same Matlab interface. We have problems with the parameters to
> pass to the octave interpn function such as vectors and lookup-table.
Create an octave_value_list with your parameters and pass it to feval (parse.h).
> Could you help us through an example about this function used in a c++
> program?
>
> Another question: We are not able to load a matrix saved in a Matlab file
> (.mat) into an octave look-up table. Is it possible to do this?
Yes, "load" can do it (generally at least). From C++ you can again
call it through "feval". Lower-level interfaces in load-save.h can
also be used.
regards
--
RNDr. Jaroslav Hajek
computing expert & GNU Octave developer
Aeronautical Research and Test Institute (VZLU)
Prague, Czech Republic
url: www.highegg.matfyz.cz