Re: How to define and plot a periodic signal?
- To: mathgroup at smc.vnet.net
- Subject: [mg62583] Re: [mg62556] How to define and plot a periodic signal?
- From: Bob Hanlon <hanlonr at cox.net>
- Date: Tue, 29 Nov 2005 04:44:16 -0500 (EST)
- Reply-to: hanlonr at cox.net
- Sender: owner-wri-mathgroup at wolfram.com
y1[x_]:=1-Abs[x]/;Abs[x]<=1; y1[x_]:=y1[x-2Sign[x]]/;Abs[x]>1; Plot[y1[x],{x,-5,5}]; y2[x_]:=Piecewise[{{1-Abs[x], Abs[x]<=1}, {y1[x-2Sign[x]], Abs[x]>1}}]; Plot[y2[x],{x,-5,5}]; Bob Hanlon > > From: "aza" <perezmu at gmail.com> To: mathgroup at smc.vnet.net > Date: 2005/11/28 Mon AM 12:57:37 EST > Subject: [mg62583] [mg62556] How to define and plot a periodic signal? > > Hello, > > I need to define a function that is a single triangular pulse repeated > periodically. How could I define this function and plot it? > > Thanks > >