Search All of the Math Forum:

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

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

 Messages: [ Previous | Next ]
 Bruno Luong Posts: 9,822 Registered: 7/26/08
Re: Bivariate Pchip
Posted: Jan 19, 2013 6:14 AM

For fun I try the tensorial pchip with different order:

clear
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);

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

% Bruno

Date Subject Author
1/16/13 samar
1/16/13 John D'Errico
1/16/13 samar
1/18/13 John D'Errico
1/17/13 Bruno Luong
1/17/13 Bruno Luong
1/18/13 John D'Errico
1/18/13 Bruno Luong
1/18/13 John D'Errico
1/19/13 Bruno Luong