No BSD License  

Highlights from
SURFIT

5.0

5.0 | 2 ratings Rate this file 15 Downloads (last 30 days) File Size: 914 Bytes File ID: #6244

SURFIT

by Vassili Pastushenko

 

11 Nov 2004 (Updated 18 Nov 2004)

Approximation of a matrix via an optimal bipolynomial of user-defined orders.

| Watch this File

File Information
Description

You have a data matrix D. You want to find its approximation, matrix SUR same size as D, by a bipolynomial P(X,Y), having orders ORDHOR in horizontal and ORDVER in vertical directions. Bipolynomial is a matrix of coefficients before bipolynomial terms X^(m)*Y(n),
n<=ORDVER
m<=ORDHOR

Solution:

SUR = surfit(D,ORDVER,ORDHOR);

ORDVER: default 1
ORDHOR: default ORDVER

compare the result with:

BIP=bipfit(D,[ORDVER,ORDHOR])
SUR=bipval(BIP,size(D));

MATLAB release MATLAB 6.5 (R13)
Other requirements POLYFIC and POLYVAC from file exchange do vectorized fitting and evaluating job.
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (2)
22 Jan 2010 Ulrich

Thanks a lot. I searched ages for something simple to remove a linear planar fit from my 2d matrix. And now I can even easily remove higher polynomal orders. I use it before doing image crosscorellation with the dftregistration.

12 Mar 2012 Amitava Biswas  
Please login to add a comment or rating.
Updates
18 Nov 2004

improve summary

Tag Activity for this File
Tag Applied By Date/Time
approximation Vassili Pastushenko 22 Oct 2008 07:35:16
interpolation Vassili Pastushenko 22 Oct 2008 07:35:16
polynomial Vassili Pastushenko 22 Oct 2008 07:35:16
surface Vassili Pastushenko 22 Oct 2008 07:35:16
fit Vassili Pastushenko 22 Oct 2008 07:35:16
serapate Vassili Pastushenko 22 Oct 2008 07:35:16
orders Vassili Pastushenko 22 Oct 2008 07:35:16

Contact us at files@mathworks.com