help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: impulse function


From: Quentin Spencer
Subject: Re: impulse function
Date: Wed, 08 Aug 2007 10:31:11 -0500
User-agent: Thunderbird 2.0.0.5 (X11/20070719)

brito.rn wrote:
I will try to explain better.

I need to plot a discrete-time signal which contains impulse responses. This 
signal is a sequence of 26 (0 to
25) samples that each one contain an accumulator of m from 0 to 10.
The signal is represented by this sequence:
x[n] = accum((m+1)*[impulse(n-2m)-impulse(n-2m-1)]), with n = 0:25 and m = 0:10;

For exemple, if x[n] when n = 0, x[0] = 
accu((m+1)*[impulse(0-2m)-impulse(0-2m-1)]) with m from 0 to 10.

Octave has a function impulse(), but this function need a system data scruture 
and I dont know how I can
convert my sequence for this data type.


I don't know what you mean here by the "accum" function, as there is not a function like that in octave. Are you looking for cumulative sum, like the function "cumsum"? Why not just list the sequence of values you're trying to get, and maybe it will be easier for someone to help.

Quentin



reply via email to

[Prev in Thread] Current Thread [Next in Thread]