lab - 2(vlsi)

2
  LAB - 2 1. Write a program(s) t hat takes in a time interval ‘t’, a frequency ‘ω from the user and plots: a) δ(t)  b) u(t) c) u(t-5) d) 2*u(t)-1 e) sin(ω *t) , sin(ω *3*t) , sin(ω *t/3) all in the same plot using different colours. f) sin(ω *t) , (1/3)*sin(3* ω *t) , (1/5)*sin(5* ω *t) individually and then their sum in the same figure window as separate plots. What do you observe in the sum of the three? g) A random signal over the time interval t (explore “rand” command)  h) For the parts b), c), d) an d e) first plot the signals in continuous form and then in discrete form.(explore “stem” command)  

Upload: manasa

Post on 06-Oct-2015

215 views

Category:

Documents


0 download

DESCRIPTION

kk

TRANSCRIPT

  • LAB - 2

    1. Write a program(s) that takes in a time interval t, a frequency from the user and

    plots:

    a) (t)

    b) u(t)

    c) u(t-5)

    d) 2*u(t)-1

    e) sin( *t) , sin( *3*t) , sin( *t/3) all in the same plot using different colours.

    f) sin( *t) , (1/3)*sin(3* *t) , (1/5)*sin(5* *t) individually and then their sum

    in the same figure window as separate plots.

    What do you observe in the sum of the three?

    g) A random signal over the time interval t (explore rand command)

    h) For the parts b), c), d) and e) first plot the signals in continuous form and then in discrete

    form.(explore stem command)

  • 2. Plot the following signal:

    The last section on RHS is a time shifted exponentially decaying signal e-t.