[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: use of interp1
From: |
Paul Kienzle |
Subject: |
Re: use of interp1 |
Date: |
Mon, 10 Jun 2002 11:22:45 -0400 |
You messed up somehow on the download. There is some cruft at the start of
your file before the function definition which is not in a comment.
I get the same error if I prepend the line
1;
to the beginning of interp1.m
Paul Kienzle
address@hidden
On Mon, Jun 10, 2002 at 02:39:12PM -0000, Pruitt Dave W Contr AEDC/SVT wrote:
> I downloaded interp1 from the sourceforge site - but am unable to use it as
> a user-defined function. For example, for the simple test code:
>
> #####
> clear;
> xf=[0:0.05:10];
> yf = sin(2*pi*xf/5);
> xp=[0:10];
> yp = sin(2*pi*xp/5);
> lin=interp1(xp,yp,xf);
> ######
>
> I get the warning:
>
> warning: function 'interp1' defined within script file '/Cadet/interp1.m'
> error: can't perform indexing operations for <unknown type> type
> error: evaluating assignment expression near line 6, column 8
> error: near line 6 of file '/Cadet/test.m'
>
> Code execution stops with this warning.
>
> I am running Octave 2.1.13 (i586-pc-cygwin) under WIN98SE.
>
> Any help interpreting this would be very much appreciated.
>
>
>
> David W. Pruitt, PhD
> Sverdrup Technology, Inc.
> 939 Avenue C
> Arnold AFB, TN 37389-9900
> address@hidden
> 931-454-3130 (DSN 340-)
> 931-454-4611 FAX
>
>
>
>
> -------------------------------------------------------------
> 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
> -------------------------------------------------------------
>
-------------------------------------------------------------
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
-------------------------------------------------------------
- use of interp1, Pruitt Dave W Contr AEDC/SVT, 2002/06/10
- Re: use of interp1,
Paul Kienzle <=