[Top][All Lists]

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

Re: feval in .oct files?

From: Johann Schumann
Subject: Re: feval in .oct files?
Date: Fri, 12 Oct 2001 09:23:14 -0700 (PDT)

>       `feval' undeclared (first use this function)
> I'm using octave-2.1.33.


I am using the following include files:

#include <octave/config.h>
#include <iostream.h>
#include <octave/oct.h>
#include <octave/defun-dld.h>
#include <octave/error.h>
#include <octave/oct-obj.h>
#include <octave/pager.h>
#include <octave/symtab.h>
#include <octave/variables.h>
#include <octave/toplev.h>
#include <octave/Array3.h>
#include <octave/parse.h>

As far as I remember when I ported my stuff to 2.1X, the declaration
of feval is in parse.h (but I am not sure right now).

> As long as I'm asking questions I have one other.  It seems octave has
> gotten pickier.  I used to be able to write a .oct file that took
> arguments which were the dimensions of the matrix the function would
> return.  I would reference such a thing as
>       double NumTrials = args(0).double_value();

With casting it should work 
        int NumTrials = (int)(args(0).double_value())
        Matrix M = new Matrix((int)NumTrials,...)

Johann Schumann
Automated Software Engineering Group
Moffett Field, Ca 94035
Phone: (650) 604-0941
email: address@hidden

Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:
How to fund new projects:
Subscription information:

reply via email to

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