generate a periodic square waveform - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Science and Engineering : Dynamic Systems : Signal Generation Tools : DynamicSystems/Square

DynamicSystems[Square] - generate a periodic square waveform

Calling Sequence

Square( )

Square(yht, f, d, t0, y0, opts)

Parameters

yht

-

(optional) algebraic; height of square wave; default is 1

f

-

(optional) algebraic; frequency of waveform; default is 1

d

-

(optional) algebraic; duty cycle from 0 to 1; default is 1/2

t0

-

(optional) algebraic; delay to start of square wave; default is 0

y0

-

(optional) algebraic; initial value; default is 0

opts

-

(optional) equation(s) of the form option = value; specify options for the Square command

Description

• 

The Square command generates a periodic square waveform.

• 

By default, Square returns an expression representing the waveform. If the option discrete is assigned true, Square returns a Vector of data points.

• 

The optional parameter yht specifies the height of the signal. Its default value is one.

• 

The optional parameter f specifies the frequency of the waveform. The default is one. The units of f are determined by the keyword parameter hertz.

• 

The optional parameter d specifies the duty-cycle of the square wave. A numeric value must be between 0 and 1, inclusive.

• 

The optional parameter t0 specifies the start time of the waveform. Its default value is zero.

• 

The optional parameter y0 specifies the initial value. Its default value is zero.

Examples

withDynamicSystems:

Square

&lcub;1t2&pi;trunc12t&pi;<&pi;0otherwise

(1)

Squareyht&comma;f&comma;d&comma;t0&comma;y0

&lcub;y0t<t0y0&plus;&lcub;yhttt02&pi;trunc12tt0f&pi;f<2d&pi;f0otherwiseotherwise

(2)

Squarediscrete&equals;true%T

1.1.1.1.0.0.0.1.1.1.

(3)

plotSquare2&comma;34&comma;12&comma;0&comma;t&equals;0..18

See Also

DynamicSystems, DynamicSystems[Chirp], DynamicSystems[Ramp], DynamicSystems[Sinc], DynamicSystems[Sine], DynamicSystems[Step], DynamicSystems[Triangle]


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