[Pkg-octave-devel] Bug#408992: octave2.9: Plot with convert
sometimes doesn't work (race condition?)
Reuben Thomas
rrt at sc3d.org
Mon Jan 29 21:09:47 CET 2007
Package: octave2.9
Version: 2.9.9-6
Severity: normal
With the following script: (I don't think the details are important)
clear
x = randn(65536, 1);
x = x / max(abs(x));
XR = 20*log10(abs(fft(2*hanning(65536).*x(1:65536), 65536)));
XP = 20*log10(abs(fft(2*hanning(65536).*x(1:65536), 65536)));
XS = 20*log10(abs(fft(2*hanning(65536).*x(1:65536), 65536)));
w = [0:65535]/65536 * 44100;
plot(w, XR, w, XP, w, XS)
hold on
axis([0 22050 -100 80])
text(5000, -50, '4 kHz: Upper Limit of Data');
legend('Rabbit','Polyphase','Resample')
plot([4000 4000], [-100 80], 'g')
plot([44100 - 4000 44100 - 4000], [-100 80], 'g');
title('Rate Convert From 8 kHz to 44.1 kHz Of Random Noise');
ylabel('Magnitude of Spectrum in dB')
xlabel('Frequency in kHz');
xlabel('Frequency in Hz');
hold off
print RandomNoiseUpsample.ppm
I usually (but not always) get this error:
error: Did not find ppm
error: evaluating if command near line 90, column 5
error: evaluating if command near line 88, column 3
error: evaluating for command near line 76, column 1
error: called from `cellidx' in file `/usr/share/octave/2.9.9/m/control/system/cellidx.m'
error: evaluating assignment expression near line 206, column 7
error: called from `print' in file `/usr/share/octave/2.9.9/m/plot/print.m'
error: near line 20 of file `foo.m'
If I don't involve convert (because I ask for .pbm output) I never get
the error.
-- System Information:
Debian Release: 4.0
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-3-686
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Versions of packages octave2.9 depends on:
ii fftw3 3.1.2-1 library for computing Fast Fourier
ii lapack3 [liblapack.so.3] 3.0.20000531a-6 library of linear algebra routines
ii libc6 2.3.6.ds1-8 GNU C Library: Shared libraries
ii libgcc1 1:4.1.1-21 GCC support library
ii libgfortran1 4.1.1-21 Runtime library for GNU Fortran ap
ii libglpk0 4.11-2 linear programming kit (shared lib
ii libhdf5-serial-1.6.5-0 [ 1.6.5-3 Hierarchical Data Format 5 (HDF5)
ii libncurses5 5.5-5 Shared libraries for terminal hand
ii libpcre3 6.7-1 Perl 5 Compatible Regular Expressi
ii libreadline5 5.2-2 GNU readline and history libraries
ii libstdc++6 4.1.1-21 The GNU Standard C++ Library v3
ii libufsparse 1.2-7 collection of libraries for comput
ii refblas3 [libblas.so.3] 1.2-8 Basic Linear Algebra Subroutines 3
ii texinfo 4.8.dfsg.1-4 Documentation system for on-line i
ii zlib1g 1:1.2.3-13 compression library - runtime
octave2.9 recommends no packages.
-- no debconf information
More information about the Pkg-octave-devel
mailing list