Code covered by the BSD License  

Highlights from
Tapering of 2D matrices

Be the first to rate this file! 29 Downloads (last 30 days) File Size: 1.84 KB File ID: #40354
image thumbnail

Tapering of 2D matrices

by Christian Jensen

 

19 Feb 2013 (Updated 04 Apr 2013)

Performs gradual tapering of matrices

| Watch this File

File Information
Description

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

Example:
X = ones(60); % Uniform distribution
figure,surf(mattaper(X))

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

Update: 4th of April 2013
  - Added cosine taper

MATLAB release MATLAB 8.0 (R2012b)
Tags for This File  
Everyone's Tags
cosine taper, image processing, signal processing, statistics, tapering
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Updates
19 Feb 2013

Fixed problem with wrong sized window matrix.

04 Apr 2013

Added cosine taper

Contact us