help-octave
[Top][All Lists]
Advanced

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

Re: buffer (signal)?


From: dbateman
Subject: Re: buffer (signal)?
Date: Thu, 10 Apr 2008 13:20:18 -0700 (PDT)



Sciss wrote:
> 
> ... so i assume this function is missing? i installed the signal  
> package but no luck. any clues how i can get a 'buffer' function for  
> octave?
> 


Yes, write it :-) Well sorry to be flippant.. However looking at

http://www.mathworks.com/access/helpdesk/help/toolbox/signal/index.html?/access/helpdesk/help/toolbox/signal/buffer.html

in fact it doesn't look all that hard to write this function. One of the
forms "y = buffer(x,n)" might be trivially written as

x = x(:);
l = length (x);
m = ceil (l / n);
y = zeros (n, m);
y(1:l) = x;

and the additional arguments aren't that hard to implement either.

Cheers
David

-- 
View this message in context: 
http://www.nabble.com/buffer-%28signal%29--tp16615296p16617492.html
Sent from the Octave - General mailing list archive at Nabble.com.



reply via email to

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