--- Begin Message ---
package octave2.9
tags 408992 confirmed upstream pending
thanks
Please, find below a bug report filed against the octave2.9 Debian package
(http://bugs.debian.org/408992). I confirm the problem. Attached below is
a patch that fixes the bug and that I am currently applying to the octave2.9
package in Debian.
Rafael
* Reuben Thomas <rrt@sc3d.org> [2007-01-29 20:09]:
> 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.
--- orig/print.m 2007-02-04 18:35:32.000000000 +0100
+++ fixed/print.m 2007-02-04 18:49:27.000000000 +0100
@@ -203,7 +203,7 @@
dev_list = {"aifm" "corel" "fig" "png" "pbm" "dxf" "mf" "hpgl", ...
"ps" "ps2" "psc" "psc2" "eps" "eps2" "epsc" "epsc2" "emf"};
convertname = "";
- idx = cellidx (dev_list, dev);
+ [idx, errmsg] = cellidx (dev_list, dev);
if (! idx)
if (! isempty (devopt))
convertname = strcat (devopt, ":", name);
--- End Message ---