help-octave
[Top][All Lists]
Advanced

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

Re: problem in using spline


From: Juan Pablo Carbajal
Subject: Re: problem in using spline
Date: Tue, 18 Oct 2011 16:40:40 +0200

On Tue, Oct 18, 2011 at 3:21 PM, preeti gaikwad <address@hidden> wrote:
>
> Hello all,
>
>           I have a problem in using spline....particularly I want to
> generate new y value at same x using such code
>
> Y1=y(Ib-23:1:Ib+23,:);
>
> X=t(:,Ib-23:1:Ib+23);
>
> XX=t(:,Ib-10:1:Ib+10);
>
> %YY=y(Ib-3:1:Ib+7,:);
>
> yy1=spline(X, Y1, XX);
>
>  here i am getting same Y1 not the new yy1 could u please let me know what
> is the problem? thanks in advance
>
> _______________________________________________
> Help-octave mailing list
> address@hidden
> https://mailman.cae.wisc.edu/listinfo/help-octave
>
>

Hi,

spline doesn't handle matrices as interp1, are you sure this is not the problem.
If you just want spline interpolation you can use
interp1 (x,y,xx,'spline')


-- 
M. Sc. Juan Pablo Carbajal
-----
PhD Student
University of Zürich
http://ailab.ifi.uzh.ch/carbajal/


reply via email to

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