0
$\begingroup$

I need to graph the following function

$f(t) = 1 + \sum_{n=1}^\infty(-1)^n u(t-n)$

($u$ refers to the unit step function)

and find the laplace transform of this function.

The problem is similar to another one posted here Calculate the Laplace transform except for mine i need to graph a function and it is slightly different.

  • 0
    my graph didn't look like it :(2012-05-19

2 Answers 2

1

Here's my picture, you should get the pattern from this...

Approaching a square wave...

  • 1
    Well, the values on the y-axis are just $0$ and $1$, the values on the x-axis are just $0,1,2,...$.2012-05-22
0

Matlab Program

  t=0:0.01:10;   G=zeros(1,length(t));   for n=1:10       G1=(-1)^n*heaviside(t-n);       G=G+G1;   end   F=1+G;   plot(t,F)   axis([0 10 -2 2]) 

enter image description here