[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.
Hi,
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())
or
Matrix M = new Matrix((int)NumTrials,...)
-johann
---------------------------------------
Johann Schumann
Automated Software Engineering Group
NASA Ames / RIACS
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: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------