Create a constant signal
"Constant signal" creates a new signal with specified
size, scale and a constant signal value.
Constant signal takes the following parameters:
- Size (no. of samples): Size of the signal to be created in
terms of the number of sample points representing it.
- Sampling distance (scale): Scale on the x-axis; distance between
successive sample points.
- Signal value: Constant value of the signal on the y-axis.
Generate a constant signal consisting of 2000 sample
points, having a scale of 0.5 and a value of 2.4:
sig = ConstSignal(2000,0.5,2.4);
y = ConstSignal(size, scale, value);