help-octave
[Top][All Lists]
Advanced

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

Re: how to call a octave function from c code


From: c.
Subject: Re: how to call a octave function from c code
Date: Sun, 5 Jan 2014 11:56:10 +0100

On 5 Jan 2014, at 11:35, osamahameed <address@hidden> wrote:

> i have written a simple function in octave . this function add two numbers
>        function [ z ] = addition(x,y)
>        z=x+y;
>        end
> name of this function is additon
> i have made m file for this function addition.m 
> please tell me how i can call this function from a c code
> 

Does this section of the manual help?
http://www.gnu.org/software/octave/doc/interpreter/Standalone-Programs.html#Standalone-Programs
notice that you can't really embed the interpreter in a C program, it should 
actually be C++ ...

c.

reply via email to

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