However there are also sawtooth waves in which the wave ramps downward and then

However there are also sawtooth waves in which the

This preview shows page 1 - 3 out of 5 pages.

However, there are also sawtooth waves in which the wave ramps downward and then sharply rises. The latter type of sawtooth wave is called a 'reverse sawtooth wave' or 'inverse sawtooth wave'. Now consider generating a square wave of amplitude A, fundamental frequency fo and phase shift w (in radians). To generate such a signal we use the command: A*square(fo*t + W); To generate a discrete time signal, we may use the stem command. Specifically, stem(n,x) depicts the data contained in vector x as a discrete time signal at the time values defined by n. The vectors n and x must, of course, have compatible dimensions. 1
Image of page 1
Aperiodic Signals Exponential Signals There are two types of exponential signals: decaying exponentials and growing exponentials. The MATLAB command for decaying exponential Be -at is B*exp(-a*t); To generate a growing exponential Be at , we use command: B*exp(a*t); In both cases, the exponential parameter a is positive. Other Functions A discrete time unit step function may be created as follows: n = -1:1:20; x = n>=0; stem(n,x) axis([-1 25 0 2]) Programs Program 1: Following is the list of commands that generates a sawtooth wave with amplitude of 1 unit, a frequency of 2 Hz or (4 p
Image of page 2
Image of page 3

You've reached the end of your free preview.

Want to read all 5 pages?

  • Spring '15
  • M. Mazidi,Danny Causey
  • Fourier Series, Square wave, Rectangular function, Triangle wave, sawtooth wave

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

Stuck? We have tutors online 24/7 who can help you get unstuck.
A+ icon
Ask Expert Tutors You can ask You can ask You can ask (will expire )
Answers in as fast as 15 minutes