Re: "Subscript indices must either be real positive integers or logicals." What should I do



In article <46b5fd6c-5318-4335-b6c6-87469613b630@xxxxxxxxxxxxxxxxxxxxxxxxxxx>,
Muffin <aam47@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
.



Relevant Pages

  • Re: "Subscript indices must either be real positive integers or logicals." What should I do
    ... point between the data points where the area under the curve equals ... Subscript indices must either be real positive integers or logicals. ... If you had a variable named 'spline', or if for some reason the ... routine named 'spline' could not be found, then Matlab would think ...
    (comp.soft-sys.matlab)
  • Re: "Subscript indices must either be real positive integers or logicals." What should I do
    ... point between the data points where the area under the curve equals ... Subscript indices must either be real positive integers or logicals. ... routine named 'spline' could not be found, ... that is where the error message: ...
    (comp.soft-sys.matlab)
  • Re: Help with Splines, please
    ... > My problem with splines is the following one: function SPLINE of Matlab ... its easily computed with no loops. ... especially if you want to interpolate ...
    (comp.soft-sys.matlab)
  • Re: Derivative of splinefit w.r.t. control points.
    ... > don't have direct access to the equations. ... I don't have Matlab, but Mathematica. ... all the "equations" variables are the 4th item in the Spline ... >> by evaluating the representation with the new coefficients instead of the ...
    (sci.math.num-analysis)
  • Re: Matlab 0stellen finden
    ... Deine Frage hat nichts mit Mathematik zu tun, sondern mit Matlab ... Allerdings macht spmak einen B-spline. ... du suchst einen linearen spline. ...
    (de.sci.mathematik)