[Pkg-octave-devel] Bug#454157: octave2.1-forge: some patches
Francesco Potorti`
Potorti at isti.cnr.it
Mon Dec 3 15:36:37 UTC 2007
Package: octave2.1-forge
Version: 2006.03.17+dfsg1-3
Severity: minor
File: /usr/share/octave/site/api-v13/m/octave2.1-forge/signal/pwelch.m
This patch allows using the default argment [] for the last three args
range, units, trend and corrects some documentation bugs.
The last hunk of the patch corrects a problem whereas title, axis labels
and grid are deleted just after the plot is shown.
--- /usr/share/octave/site/api-v13/m/octave2.1-forge/signal/pwelch.m~ 2006-11-28 19:28:15.000000000 +0100
+++ /usr/share/octave/site/api-v13/m/octave2.1-forge/signal/pwelch.m 2007-12-03 16:30:37.000000000 +0100
@@ -14,7 +14,8 @@
## along with this program; if not, write to the Free Software
## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-## usage: [Pxx, w] = pwelch(x,n,Fs,window,overlap,ci,range,units,trend)
+## usage: pwelch(x,n,Fs,window,overlap,ci,range,units,trend)
+## [Pxx, w] = pwelch(x,n,Fs,window,overlap,ci,range,units,trend)
## [Pxx, Pci, w] = pwelch(x,n,Fs,window,overlap,ci,range,units,trend)
##
## Estimate power spectrum of a stationary signal. This chops the signal
@@ -22,6 +23,7 @@
## transform to determine the frequency components at that slice. The
## magnitudes of these slices are then averaged to produce the estimate Pxx.
## The confidence interval around the estimate is returned in Pci.
+## When no return values are requested, plot Pxx versus frequency x.
##
## x: vector of samples
## n: size of fourier transform window, or [] for default=256
@@ -35,8 +37,10 @@
## passed as 0, then no confidence intervals will be computed.
## range: 'whole', or [] for default='half'
## show all frequencies, or just half of the frequencies
-## units: 'squared', or [] for default='db'
-## show results as magnitude squared or as log magnitude squared
+## units: 'squared', 'db', or [] for default
+## default is log magnitude squared ('db') when plotting (apart from cohere)
+## default is magnitude squared ('squared') when returning values
+##
## trend: 'mean', 'linear', or [] for default='none'
## remove trends from the data slices before computing spectral estimates
##
@@ -142,6 +146,15 @@ function [varargout] = pwelch(x, varargi
elseif pos == 4
ci = arg;
pos++;
+ elseif pos == 5
+ whole = arg;
+ pos++;
+ elseif pos == 6
+ use_dB = arg;
+ pos++;
+ elseif pos == 6
+ trend = arg;
+ pos++;
else
usage(usagestr);
endif
@@ -315,10 +328,10 @@ function [varargout] = pwelch(x, varargi
plot(f, P, ";;");
endif
unwind_protect_cleanup
- grid("off");
- title("");
- xlabel("");
- ylabel("");
+# grid("off");
+# title("");
+# xlabel("");
+# ylabel("");
end_unwind_protect
endif
-- System Information:
Debian Release: lenny/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'testing-proposed-updates')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.22-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=it_IT at euro (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C)
Shell: /bin/sh linked to /bin/bash
Versions of packages octave2.1-forge depends on:
ii atlas3-base [liblapack 3.6.0-20.6 Automatically Tuned Linear Algebra
ii lapack3 [liblapack.so. 3.0.20000531a-6.1 library of linear algebra routines
ii libc6 2.6.1-1 GNU C Library: Shared libraries
ii libcln4 1.1.13-2 Class Library for Numbers (C++)
ii libfftw3-3 [fftw3] 3.1.2-3 library for computing Fast Fourier
ii libgcc1 1:4.2.2-3 GCC support library
ii libgfortran1 4.1.2-17 Runtime library for GNU Fortran ap
ii libginac1.3c2a 1.3.7-1 The GiNaC symbolic framework (runt
ii libgmp3c2 2:4.2.2+dfsg-1 Multiprecision arithmetic library
ii libgsl0 1.9-3 GNU Scientific Library (GSL) -- li
ii libhdf5-serial-1.6.5-0 1.6.5-5+b1 Hierarchical Data Format 5 (HDF5)
ii libice6 2:1.0.4-1 X11 Inter-Client Exchange library
ii libjpeg62 6b-14 The Independent JPEG Group's JPEG
ii libncurses5 5.6+20071013-1 Shared libraries for terminal hand
ii libnetcdf3 3.6.1-1 An interface for scientific data a
ii libpng12-0 1.2.15~beta5-3 PNG library - runtime
ii libqhull5 2003.1-7 calculate convex hulls and related
ii libreadline5 5.2-3 GNU readline and history libraries
ii libsm6 2:1.0.3-1+b1 X11 Session Management library
ii libstdc++6 4.2.2-3 The GNU Standard C++ Library v3
ii libx11-6 2:1.0.3-7 X11 client-side library
ii octave2.1 1:2.1.73-13 GNU Octave language for numerical
ii refblas3 [libblas.so.3 1.2-8 Basic Linear Algebra Subroutines 3
ii zlib1g 1:1.2.3.3.dfsg-6 compression library - runtime
octave2.1-forge recommends no packages.
-- no debconf information
More information about the Pkg-octave-devel
mailing list