DigComT

BoxT

DirectoryDOS NameType
Signals boxt m-function

Purpose

The box signal of duration T

Calling Sequence

y = BoxT(x, T)

INPUTS

Input Description
1 x
Vector of values at which to
calculate the box signal

Optional INPUTS

Input Description Default Value
2 T
Period of box signal
1

OUTPUTS

Output Description
1 y
Vector containing values of
the box signal calculated at
values in the vector x

Description

BoxT() operates on the input vector
according to the following equation:
y(i) = 1 if -T/2 <= x(i) < T/2 y(i) = 0 otherwise

Example

x = linspace(-10,10,200); y = BoxT(x,5); plot(x,y,'r'); xlabel('x'); ylabel('BoxT(x,5)'); axis([-10 10 -0.1 1.1]);
DigComT Manual Table of Contents DigComT Manual Native Intelligence Home

DigComT Licensee: Chris Heegard 
Native Intelligence
Last modified: Tuesday, January 11, 2000
Date created: Tuesday, January 11, 2000

Copyright © 1997-2000, Native Intelligence, All rights reserved.