plot a vector of discrete points - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Science and Engineering : Dynamic Systems : Plotting and Graphical Tools : DynamicSystems/DiscretePlot

DynamicSystems[DiscretePlot] - plot a vector of discrete points

Calling Sequence

DiscretePlot(T, A, opts)

DiscretePlot(A, t0, Ts, opts)

Parameters

T

-

Vector(realcons) or list(realcons); list of time values

A

-

Vector(realcons) or list(realcons); list of amplitude values

t0

-

realcons; delay to the first point

Ts

-

realcons; sampling time

opts

-

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

Description

• 

The DiscretePlot command plots a Vector or list of discrete points.

• 

The points can be passed in two ways: (1) as two Vectors (or lists), the first the time values, the second the amplitude values; or (2) as a Vector (or list) of amplitudes followed by the initial delay and sample period.

• 

The parameter T specifies the time values for the points to be plotted.

• 

The parameter A specifies the amplitude values for the points to be plotted.

• 

The parameters t0 and Ts specify the initial delay and the sampling time, respectively.

• 

The DiscretePlot command takes all standard plot,options. The option style has been extended; see below for details.

Examples

withDynamicSystems:

Ns:=30:

T:=VectorNs,t→0.1t:

A:=VectorNs,t→sin0.12t:

DiscretePlotT,A,style=stair,legend=stair,color=red,labels=time,signal

DiscretePlotT,A,style=line,legend=line

DiscretePlotT,A,style=point,legend=point,symbol=box

The command to create the plot from the Plotting Guide is

DiscretePlotT,A,style=stem

See Also

DynamicSystems, plot[options]


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