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: Bivariate Pchip
Replies: 9   Last Post: Jan 19, 2013 6:14 AM

Advanced Search

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

Posts: 9,822
Registered: 7/26/08
Re: Bivariate Pchip
Posted: Jan 19, 2013 6:14 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

For fun I try the tensorial pchip with different order:

n = 5;

z = peaks(n);
x = (1:n)';
xi = linspace(1,n,128)';

z1 = pchip(x,z,xi);
z1 = pchip(x,z1',xi)';

z2 = pchip(x,z',xi)';
z2 = pchip(x,z2,xi);

surf(z); title('original data')
surf(z1); title('tensorial 1/2')
surf(z2); title('tensorial 2/1')
surf(z1-z2); title('difference')

% Bruno

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.