buffer (signal)?
dbateman
dbateman at free.fr
Thu Apr 10 15:20:18 CDT 2008
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.
More information about the Help-octave
mailing list