[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Re: conversion of Octave code into C code
From: |
Laurent Hoeltgen |
Subject: |
Re: Re: conversion of Octave code into C code |
Date: |
Fri, 04 Feb 2011 07:10:36 +0100 |
On Fri, 2011-02-04 at 09:55 +0530, pavan kumar wrote:
> Hi
>
> Thanks for your reply. It seems I have not conveyed my requirement
> properly. My intention is not to write C/C++ code in octave. I wrote
> some code in octave and now I need to port it to C so that I can use
> it in my Keil uVision. oct files will enable us to write C++/C code in
> octave and call octave libraries. But that is not the requirement.
> Please let me know if there is any method using which i can convert
> the octave code (.m file) to C
>
> Regards,
> Pavan
>
> ---------- Original message ----------
> From:"Andy Buckle"< address@hidden >
> Date: 3 Feb 11 14:20:12
> Subject: Re: conversion of Octave code into C code
> To: pavan kumar <address@hidden>
> Cc: address@hidden
>
> On Thu, Feb 3, 2011 at 6:23 AM, pavan kumar <address@hidden>
> wrote:
> > Hi,
> >
> > I need to convert my Octave code into C code to use it in my
> application.
> > Ple ase let me know how should I do this.
> >
> > Regards,
> > Pavan
>
>
> http://www.gnu.org/software/octave/doc/interpreter/Oct_002dFiles.html#Oct_002dFiles
>
> Use oct files. You write C++, and can call the compiled result
> (and
> oct file) from Octave. It is possible to write c++ and use
> mostly c.
> You will need to learn some C++ to use octave's API.
>
> I believe there is a MEX interface too, which may have some
> disadvantages. I have not used this myself.
>
>
>
> --
> /* andy buckle */
>
>
> Get Yourself a cool, short @in.com Email ID now!
> _______________________________________________
> Help-octave mailing list
> address@hidden
> https://mailman.cae.wisc.edu/listinfo/help-octave
Hi,
As far as my knowledge goes, there is no automatic octave to C
converter. If you want C code, you will probably have to write the code
by yourself.
Greetings,
Laurent
--
Laurent Hoeltgen
signature.asc
Description: This is a digitally signed message part