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: 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: 8,785
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:

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



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.