[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Mex and Octave
From: |
Henry F. Mollet |
Subject: |
Re: Mex and Octave |
Date: |
Mon, 21 Mar 2005 11:20:48 -0800 |
User-agent: |
Microsoft-Entourage/10.1.1.2418 |
Please correct if this is not correct (from my annotations in the manual):
>From the manual using the oregonator.cc example:
1. At shell prompt:
' mkoctfile oregonator.cc ' will have produced the oregonator.oct file.
2. At the octave prompt:
' oregonator ([1,2,3], 0] ' will call the compiled .oct file with initial
conditions to calculate the derivatives. They will be needed for subsequent
solving for x(0), x(1), and x(2) as a function of time by numerical
integration which is not part of the example for dynamically linked
functions.
3. Step 2 will only work if your Octave version has dynamic linking enabled
and to find out you type at the Octave prompt:
' octave-config-info ("dld") '
4. We cannot compile the .cc file with gcc and run the compiled a.out file
at the shell prompt because these .cc files don't contain a main function so
they won't run as a standard executable at the shell prompt.
Henry
on 3/21/05 9:51 AM, Carine Simon at address@hidden wrote:
>
> Hi,
>
> I've got a stupid problem: I can't find back how to use mex files under
> Octave.
> I've compiled my files using mkoctfile and got .oct files. I don't know why
> but
> I had to specify the full path of mex.h and other libraries. This is a bit
> stupid but not so important.
> But when I have my myfile.oct, how can I use it in octave programs ?
>
> Thanks in advance,
> Carine.
>
> -------------------------------------------------
> This mail sent through IMP: http://horde.org/imp/
>
>
>
> -------------------------------------------------------------
> Octave is freely available under the terms of the GNU GPL.
>
> Octave's home on the web: http://www.octave.org
> How to fund new projects: http://www.octave.org/funding.html
> Subscription information: http://www.octave.org/archive.html
> -------------------------------------------------------------
>
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------