Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Why is interp1(x,Y,...) being removed?
Replies: 55   Last Post: Oct 16, 2012 5:10 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Richard Crozier

Posts: 111
Registered: 3/19/09
Re: Why is interp1(x,Y,...) being removed?
Posted: Oct 16, 2012 10:40 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply


> Do you understand the latest version fully, Bruno? I can't test what it
> really does...and so far I don't follow what the doc is trying to say.
>
> Is it indeed just terribly poorly written documentation or is there some
> other functionality actually included now beyond that of simply
> interpolation on the columns of the array Y?


I haven't actually tried more than 2 dimensions in Y, but I believe it will interpolate datasets in every dimension of Y provided the first dimension is the same length as x,

e.g.

x = linspace(0,2*pi,10)';
xi = [0,pi/4,pi]';
Y = sin(x);
interp1(x, Y, xi)

ans =

0.0000e+000
685.5401e-003
55.5112e-018


Y = [sin(x), cos(x)];

interp1(x, Y, xi)

ans =

0.0000e+000 1.0000e+000
685.5401e-003 691.9949e-003
55.5112e-018 -939.6926e-003

Y(:,:,1:6) = repmat([sin(x), cos(x)], [1,1,6]);

interp1(x, Y, xi)

ans(:,:,1) =

0.0000e+000 1.0000e+000
685.5401e-003 691.9949e-003
55.5112e-018 -939.6926e-003


ans(:,:,2) =

0.0000e+000 1.0000e+000
685.5401e-003 691.9949e-003
55.5112e-018 -939.6926e-003


ans(:,:,3) =

0.0000e+000 1.0000e+000
685.5401e-003 691.9949e-003
55.5112e-018 -939.6926e-003


ans(:,:,4) =

0.0000e+000 1.0000e+000
685.5401e-003 691.9949e-003
55.5112e-018 -939.6926e-003


ans(:,:,5) =

0.0000e+000 1.0000e+000
685.5401e-003 691.9949e-003
55.5112e-018 -939.6926e-003


ans(:,:,6) =

0.0000e+000 1.0000e+000
685.5401e-003 691.9949e-003
55.5112e-018 -939.6926e-003

and so on, which is really quite cool functionality as I can imagine arranging my data in a way that was physically meaningful for multiple degrees of freedom.


Date Subject Author
10/10/12
Read Why is interp1(x,Y,...) being removed?
Richard Crozier
10/10/12
Read Re: Why is interp1(x,Y,...) being removed?
Matt J
10/10/12
Read Re: Why is interp1(x,Y,...) being removed?
Richard Crozier
10/11/12
Read Re: Why is interp1(x,Y,...) being removed?
dpb
10/11/12
Read Re: Why is interp1(x,Y,...) being removed?
Matt J
10/11/12
Read Re: Why is interp1(x,Y,...) being removed?
Richard Crozier
10/11/12
Read Re: Why is interp1(x,Y,...) being removed?
dpb
10/11/12
Read Re: Why is interp1(x,Y,...) being removed?
Matt J
10/10/12
Read Re: Why is interp1(x,Y,...) being removed?
dpb
10/10/12
Read Re: Why is interp1(x,Y,...) being removed?
Bruno Luong
10/10/12
Read Re: Why is interp1(x,Y,...) being removed?
james bejon
10/10/12
Read Re: Why is interp1(x,Y,...) being removed?
Richard Crozier
10/10/12
Read Re: Why is interp1(x,Y,...) being removed?
Derek Goring
10/12/12
Read Re: Why is interp1(x,Y,...) being removed?
Penny Anderson
10/12/12
Read Re: Why is interp1(x,Y,...) being removed?
Matt J
10/12/12
Read Re: Why is interp1(x,Y,...) being removed?
james bejon
10/12/12
Read Re: Why is interp1(x,Y,...) being removed?
dpb
10/12/12
Read Re: Why is interp1(x,Y,...) being removed?
dpb
10/12/12
Read Re: Why is interp1(x,Y,...) being removed?
Steven Lord
10/12/12
Read Re: Why is interp1(x,Y,...) being removed?
dpb
10/12/12
Read Re: Why is interp1(x,Y,...) being removed?
dpb
10/13/12
Read Re: Why is interp1(x,Y,...) being removed?
Bruno Luong
10/13/12
Read Re: Why is interp1(x,Y,...) being removed?
Matt J
10/13/12
Read Re: Why is interp1(x,Y,...) being removed?
Bruno Luong
10/13/12
Read Re: Why is interp1(x,Y,...) being removed?
Matt J
10/13/12
Read Re: Why is interp1(x,Y,...) being removed?
Bruno Luong
10/15/12
Read Re: Why is interp1(x,Y,...) being removed?
Steven Lord
10/15/12
Read Re: Why is interp1(x,Y,...) being removed?
dpb
10/15/12
Read Re: Why is interp1(x,Y,...) being removed?
dpb
10/15/12
Read Re: Why is interp1(x,Y,...) being removed?
dpb
10/16/12
Read Re: Why is interp1(x,Y,...) being removed?
Bruno Luong
10/16/12
Read Re: Why is interp1(x,Y,...) being removed?
dpb
10/16/12
Read Re: Why is interp1(x,Y,...) being removed?
Richard Crozier
10/16/12
Read Re: Why is interp1(x,Y,...) being removed?
dpb
10/16/12
Read Re: Why is interp1(x,Y,...) being removed?
Bruno Luong
10/16/12
Read Re: Why is interp1(x,Y,...) being removed?
dpb
10/16/12
Read Re: Why is interp1(x,Y,...) being removed?
Richard Crozier
10/16/12
Read Re: Why is interp1(x,Y,...) being removed?
dpb
10/13/12
Read Re: Why is interp1(x,Y,...) being removed?
dpb
10/11/12
Read Re: Why is interp1(x,Y,...) being removed?
dpb
10/12/12
Read Re: Why is interp1(x,Y,...) being removed?
Penny Anderson
10/12/12
Read Re: Why is interp1(x,Y,...) being removed?
dpb
10/15/12
Read Re: Why is interp1(x,Y,...) being removed?
Steven Lord
10/15/12
Read Re: Why is interp1(x,Y,...) being removed?
Richard Crozier
10/15/12
Read Re: Why is interp1(x,Y,...) being removed?
Steve Eddins
10/15/12
Read Re: Why is interp1(x,Y,...) being removed?
Steven Lord
10/15/12
Read Re: Why is interp1(x,Y,...) being removed?
Richard Crozier
10/15/12
Read Re: Why is interp1(x,Y,...) being removed?
Steve Eddins
10/15/12
Read Re: Why is interp1(x,Y,...) being removed?
Bruno Luong
10/15/12
Read Re: Why is interp1(x,Y,...) being removed?
dpb
10/15/12
Read Re: Why is interp1(x,Y,...) being removed?
Ken Garrard
10/15/12
Read Re: Why is interp1(x,Y,...) being removed?
dpb
10/15/12
Read Re: Why is interp1(x,Y,...) being removed?
dpb
10/12/12
Read Re: Why is interp1(x,Y,...) being removed?
Bruno Luong
10/13/12
Read Re: Why is interp1(x,Y,...) being removed?
Richard Crozier
10/12/12
Read Re: Why is interp1(x,Y,...) being removed?
Mark Shore

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.