File Exchange

image thumbnail

Tapering of 2D matrices

version 1.2 (1.84 KB) by

Performs gradual tapering of matrices

1 Download


View License

MATTAPER Tapering of 2D matrices.
[A,WINDOW] = MATTAPER(X,TF,W,S) performs gradual tapering by applying
either a student's t cumulative distribution function or a cosine
function to the four borders of the 2D matrix X.
For cosine: W is width of cosine in percent of width of X. S is unused.
For t-distribution: S defines the (integer) rate of decreasing border
values, and W the (integer) position of the half height of the applied
border window.

tf =
1: t-distribution
2: cosine

X = ones(60); % Uniform distribution

Written by Christian Lundmand Jensen
Date: 15th of February, 2013.

Update: 4th of April 2013
- Added cosine taper

Comments and Ratings (0)



Added cosine taper


Fixed problem with wrong sized window matrix.

MATLAB Release
MATLAB 8.0 (R2012b)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Win prizes and improve your MATLAB skills

Play today