SignalProcessing - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Science and Engineering : Signal Processing : Signal Generation : SignalProcessing/GenerateSlope

SignalProcessing

  

GenerateSlope

  

generate a slope array

 

Calling Sequence

Parameters

Options

Description

Thread Safety

Examples

Compatibility

Calling Sequence

GenerateSlope(n, offset, slope)

Parameters

n

-

posint, number of samples

offset

-

realcons, offset

slope

-

realcons, slope

Options

• 

container : Array, predefined Array for holding results

Description

• 

The GenerateSlope(n, offset, slope) command generates n samples for a slope signal. The result is returned in an Array with datatype float[8].

• 

The k-th sample point is computed as km+α, where α is the value of offset and m is the value of the slope argument.

• 

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].

Thread Safety

• 

The SignalProcessing[GenerateSlope] command is thread-safe as of Maple 17.

• 

For more information on thread safety, see index/threadsafe.

Examples

withSignalProcessing:

AGenerateSlope10,0,1

A:=0.1.2.3.4.5.6.7.8.9.

(1)

cArray1..10,'datatype'='float'8,'order'='C_order':

AGenerateSlope10,1.3,0.35,'container'=c

A:=1.300000000000000.9500000000000000.6000000000000000.2500000000000000.09999999999999990.4500000000000000.8000000000000001.150000000000001.500000000000001.85000000000000

(2)

c

1.300000000000000.9500000000000000.6000000000000000.2500000000000000.09999999999999990.4500000000000000.8000000000000001.150000000000001.500000000000001.85000000000000

(3)

plots:-listplotGenerateSlope100,1.3,0.35

Compatibility

• 

The SignalProcessing[GenerateSlope] command was introduced in Maple 17.

• 

For more information on Maple 17 changes, see Updates in Maple 17.

See Also

GenerateTone

GenerateTriangle

 


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam