Re: "Subscript indices must either be real positive integers or logicals." What should I do
- From: Muffin <aam47@xxxxxxxxxxx>
- Date: Tue, 12 Feb 2008 13:40:06 -0800 (PST)
On Feb 12, 4:36 pm, rober...@xxxxxxxxxxxxxxxxxx (Walter Roberson)
wrote:
In article <46b5fd6c-5318-4335-b6c6-87469613b...@xxxxxxxxxxxxxxxxxxxxxxxxxxx>,
Muffin <aa...@xxxxxxxxxxx> wrote:
I plotted data and then fitted it with a curve. Now I want to find a
point between the data points where the area under the curve equals
the area over the curve. This was working on another computer last
night with an older version of Matlab but now the error:
Subscript indices must either be real positive integers or logicals.
keeps coming up.
Xdata = 0.1:.001:1.6;
plane = spline(X, Y, Xdata)
If you had a variable named 'spline', or if for some reason the
routine named 'spline' could not be found, then Matlab would think
you were trying to access a variable named 'spline' with
indices that were not integers.
spline() does appear to be a part of basic matlab, at least in
R2007a. I glanced around but could not find any information as
to when it was introduced as an independant function
(as an option to interp1 it goes back to at least Matlab 6.1)
--
"When a scientist is ahead of his times, it is often through
misunderstanding of current, rather than intuition of future truth.
In science there is never any error so gross that it won't one day,
from some perspective, appear prophetic." -- Jean Rostand
spline is a routine here. I used help spline. Do you have any other
ideas to fit the data points then so I can use the function fzero.
Apparently, that is where the error message: "Subscript indices must
either be real positive integers or logicals." are coming up
.
- Follow-Ups:
- Re:
- From: Ian Clarkson
- Re: "Subscript indices must either be real positive integers or logicals." What should I do
- From: Muffin
- Re:
- References:
- Prev by Date: Re: "Subscript indices must either be real positive integers or logicals." What should I do
- Next by Date: Re: "Subscript indices must either be real positive integers or logicals." What should I do
- Previous by thread: Re: "Subscript indices must either be real positive integers or logicals." What should I do
- Next by thread: Re: "Subscript indices must either be real positive integers or logicals." What should I do
- Index(es):
Relevant Pages
|