print function cellidx undefined

Matthias Brennwald matthias.brennwald at nagra.ch
Mon Aug 11 01:42:21 CDT 2008


On Fri, 2008-08-08 at 09:36 -0400, John W. Eaton wrote:
> On  8-Aug-2008, Matthias Brennwald wrote:
> 
> | To: bug at octave.org
> | Cc: bwm at nagra.ch
> | Subject: print function cellidx undefined
> | --------
> | Bug report for Octave 3.1.51+ configured for x86_64-unknown-linux-gnu
> | 
> | Description:
> | -----------
> | The print function produces an unexpected error:
> | error: `cellidx' undefined near line 244 column 22
> | 
> | This error occurs with gnuplot. I haven't tired other plotting backends.
> | 
> | 
> | Repeat-By:
> | ---------
> | plot (sin(1:10))
> | print ('testy.eps','-deps')
> | error: `cellidx' undefined near line 244 column 22
> | error: called from `print' in file 
> | `/usr/local/share/octave/3.1.51+/m/plot/print.m'
> 
> I checked in the following change.  You can get a copy of cellidx.m
> from the Mercurial archive.
> 
> jwe
> 
> plain text document attachment (diffs)
> # HG changeset patch
> # User John W. Eaton <jwe at octave.org>
> # Date 1218202535 14400
> # Node ID 79890b8187bdb2f2d9e4174d8d94f5e03d39ec3c
> # Parent  60e938e1459b0b3ba0e7a38724cbc072c4589f46
> scripts/general/Makefile.in (SOURCES): add cellidx.m to the list
> 
> diff --git a/scripts/ChangeLog b/scripts/ChangeLog
> --- a/scripts/ChangeLog
> +++ b/scripts/ChangeLog
> @@ -1,3 +1,7 @@
> +2008-08-08  John W. Eaton  <jwe at octave.org>
> +
> +	* general/Makefile.in (SOURCES): Add cellidx.m to the list.
> +
>  2008-08-07  John W. Eaton  <jwe at octave.org>
>  
>  	* gethelp.cc: Delete definition of NPOS.
> diff --git a/scripts/general/Makefile.in b/scripts/general/Makefile.in
> --- a/scripts/general/Makefile.in
> +++ b/scripts/general/Makefile.in
> @@ -35,7 +35,7 @@
>  
>  SOURCES = __isequal__.m __splinen__.m accumarray.m arrayfun.m \
>    bicubic.m bitcmp.m bitget.m bitset.m blkdiag.m cart2pol.m \
> -  cart2sph.m cell2mat.m celldisp.m circshift.m common_size.m \
> +  cart2sph.m cellidx.m cell2mat.m celldisp.m circshift.m common_size.m \
>    cplxpair.m cumtrapz.m dblquad.m deal.m del2.m diff.m flipdim.m fliplr.m \
>    flipud.m genvarname.m gradient.m idivide.m ind2sub.m int2str.m \
>    interp1.m interp1q.m interp2.m interp3.m interpn.m interpft.m \

I updated my Octave code repository, rebuilt and re-installed it. Works
as expected now.

Thanks
Matthias



More information about the Bug-octave mailing list