Constant signal
Purpose
Description
Example
Macro Synopsis
Modules
Purpose
Create a constant signal
Description
"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.
Example
Generate a constant signal consisting of 2000 sample
points, having a scale of 0.5 and a value of 2.4:
signal sig;
sig = ConstSignal(2000,0.5,2.4);
Macro Synopsis
y = ConstSignal(size, scale, value);
signal y;
int n;
float scale,value;
Modules
Student, Professional