MathGroup Archive 2005

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: How to define and plot a periodic signal?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg62596] Re: [mg62556] How to define and plot a periodic signal?
  • From: Sseziwa Mukasa <mukasa at jeol.com>
  • Date: Tue, 29 Nov 2005 04:44:46 -0500 (EST)
  • References: <200511280557.AAA18435@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

On Nov 28, 2005, at 12:57 AM, aza wrote:

> Hello,
>
> I need to define a function that is a single triangular pulse repeated
> periodically. How could I define this function and plot it?

Here is a general expression that takes a period T and a point t  
which linearly reaches its maximum at T/2,3T/2,5T/2...

func[t_,T_]:=0.5 - Abs[t - Quotient[t, T] - T/2]

Regards,

Ssezi


  • Prev by Date: Re: does this shut down anyone else's kernel?
  • Next by Date: Re: Package development
  • Previous by thread: Re: How to define and plot a periodic signal?
  • Next by thread: Re: How to define and plot a periodic signal?