Mu Analysis and Synthesis Toolbox    
cos_tr, sin_tr, step_tr

Generate a VARYING matrix containing a cosine, sine, or step signal at an evenly spaced time interval

Syntax

Description
cos_tr, sin_tr, and step_tr generate time signals for use with the trsp (time response) command. The following are the input variables provided to cos_tr and sin_tr:

Inputs to cos_tr and sin_tr:

freq
frequency of the cosine (sine) signal (radians/second)
mag
magnitude of signal
tinc
time step (increment)
lastt
final time (the signal starts at time t=0)

Output:

out
time varying matrix of the cosine (sine) signal

Inputs to step_tr:

timedata
time at which step occurs (vector)
stepdata
magnitude of step (vector)
tinc
time step (increment)
lastt
final time (the signal starts at time t=0)

Output:

out
time varying matrix of steps

Examples
Synthesize a cosine signal with a 1 Hz frequency and of magnitude 1.5, 5 seconds in length. The time increment is .05 seconds.

Algorithm
cos_tr and sin_tr call the MATLAB commands cos and sin, respectively.

See Also
minfo, siggen, trsp, vpck



cmmusyn crand, crandn, sysrand, varyrand