BoxT
| Directory | DOS Name | Type |
| Signals |
boxt |
m-function |
Purpose
The box signal of duration T
Calling Sequence
y = BoxT(x, T)
INPUTS
|
Input |
Description |
|
x
|
Vector of values at which to
calculate the box signal
|
Optional INPUTS
|
Input |
Description |
Default Value |
|
T
|
Period of box signal
|
1
|
OUTPUTS
|
Output |
Description |
|
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 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.