Flatten a data in 2d in matlab

The following Matlab project contains the source code and Matlab examples used for flatten a data in 2d . This function removes the best plane fit trend from the data in the 2D array Z and returns the residual in the 2D array Z_f

The source code and files included in this project are listed in the project files section, please make sure whether the listed source code meet your needs there.

Project Files: 

File NameSize
detrend_2d.m 1213
license.txt 1307
test.m 382