help-octave
[Top][All Lists]
Advanced

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

Re: Calling Octave package function from C++ code


From: Shamika Mohanan
Subject: Re: Calling Octave package function from C++ code
Date: Fri, 7 Aug 2015 09:34:04 +0530

Yes, that works. Thank you.

Shamika

On Fri, Aug 7, 2015 at 9:26 AM, Mike Miller <address@hidden> wrote:
On Fri, Aug 07, 2015 at 09:07:16 +0530, Shamika Mohanan wrote:
> No. That did not work. It shows the error
>
> error: feval: function 'pkg load control' not found
>
> I added the line 'pkg load all' to
> /usr/share/octave/site/m/startup/octaverc. Now I'm able to call functions
> from packages.

The words "load" and "all" are string arguments. Try the following:

  feval ("pkg", ovl ("load", "all"), 0);
  feval ("pkg", ovl ("list"), 0);

--
mike


reply via email to

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