help-octave
[Top][All Lists]
Advanced

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

bug in signal processing function bartlett


From: Mark Esplin
Subject: bug in signal processing function bartlett
Date: Tue, 13 Nov 2001 14:05:20 -0500

        I am using GNU Octave, version 2.1.34 (i686-pc-linux-gnu).  When I try 
to 
make a Bartlett window I get the following results:

octave:1> bartlett(10)
error: A(I) = X: X must be a scalar or a matrix with the same size as I
error: evaluating assignment expression near line 44, column 17
error: evaluating if command near line 39, column 3
error: called from `bartlett' in file 
`/usr/local/share/octave/2.1.34/m/signal/bartlett.m'

Removing the transpose from lines 44 and 45 of bartlett.m fixes the problem.  
That is change lines 44 and 45 of octave/2.1.34/m/signal/bartlett.m
from:

    c (1 : n+1) = 2 * (0 : n)' / m;
    c (n+2 : m+1) = 2 - 2 * (n+1 : m)'/m;

to:

    c (1 : n+1) = 2 * (0 : n) / m;
    c (n+2 : m+1) = 2 - 2 * (n+1 : m)/m;

                                   -Mark P. Esplin

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

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