Professional Documents
Culture Documents
Step and Ramp Function
Step and Ramp Function
sin(x+2)=sin(x),cos(x+2)=cos(x) also if f(x)=k then f(x+2)=k The functions k, cos(nx),sin(nx) (n=1,2,3,4, .) are all periodic functions of period 2. The linear combinations of all periodic functions is of the form:
= 0 +
=1
cos
+ sin
= =
2
Unit step function: It is defined as, = Unit ramp function: It is defined as, = I have taken period of the functions as follows, Unit step function: = Unit ramp function: = 0, , > < 0 0 > 1 0 2 > 0 0 > 0, , < 0 0 0, 1, < 0 0
= 1 +
=1
=1
=1
=1
the NAM lab program for both the functions are in .m file