SignalProcessing
GenerateTriangle
generate a triangle
Calling Sequence
Parameters
Options
Description
Thread Safety
Examples
Compatibility
GenerateTriangle( n, magnitude, frequency, phase, asymmetry )
n
-
posint, number of samples to generate
magnitude
realcons, magnitude of the signal
frequency
realcons, the frequency of the signal (0 <= frequency < 1/2)
phase
realcons, the phase of the signal (0 <= phase < 2Pi)
asymmetry
realcons, the asymmetry of the signal (-Pi <= asymmetry < Pi)
container : Array, predefined Array for holding results
The GenerateTriangle(n, magnitude, frequency, phase, asymmetry ) command generates n samples for a triangular signal. The result is returned in an Array with datatype float[8].
The value of the magnitude argument must be positive.
The value of the frequency argument must be non-negative and strictly less than .
The phase argument must be non-negative and strictly less than .
The asymmetry argument must be greater than or equal to , and strictly less than . When the value of asymmetry is equal to 0, the resulting triangle is symmetric.
If the container=C option is provided, then the results are put into C and C is returned. With this option, no additional memory is allocated to store the result. The container must be an Array of size n having datatype float[8].
The SignalProcessing[GenerateTriangle] command is thread-safe as of Maple 17.
For more information on thread safety, see index/threadsafe.
The SignalProcessing[GenerateTriangle] command was introduced in Maple 17.
For more information on Maple 17 changes, see Updates in Maple 17.
See Also
GenerateSlope
GenerateTone
SignalPlot
Download Help Document