The Math Forum

Search All of the Math Forum:

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

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

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: vectorizing interp1
Replies: 9   Last Post: Mar 4, 2012 1:58 PM

Advanced Search

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

Posts: 23
From: Boston
Registered: 7/24/07
Re: vectorizing interp1
Posted: Mar 4, 2012 11:43 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

"Bruno Luong" <b.luong@fogale.findmycountry> wrote in message <jiv5d6$dtd$>...
> Add this below your example code:
> %
> [X Y]=meshgrid(x,1:ny);
> Y1=repmat(1:ny, [size(X1,1) 1]);
> ZZvec = interp2(X,Y,ZZ',X1,Y1,'spline')
> % Bruno

Thanks Bruno!
Now I have to check if using interp2 is faster in my real problem.

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

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.