help-octave
[Top][All Lists]
Advanced

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

Re: Function works with number literal but not with variable


From: Judd Storrs
Subject: Re: Function works with number literal but not with variable
Date: Wed, 16 Dec 2009 13:54:06 -0500

On Wed, Dec 16, 2009 at 12:15 PM, George <address@hidden> wrote:
> Ok so from looking at the code you don't see anything wrong?

I think I've deciphered your message. What's really confusing is that
it isn't clear if you are reporting a bug in image or a bug in your
workaround for a bug in image? Anyway, using mind-reading I think your
problem boils down to?

image = magic(128) ;
imshow(single(image),[]) ;

I think you already found the workaround:

imshow(double(image),[]) ;

If so, the problem is already fixed in the bleeding-edge development
sources (revision 9988 iirc). The development version works in Ubuntu
9.10 x86_64, but it fails on the stable release 3.2.3.

octave-3.2.3:1> image = single(magic(128)) ;
octave-3.2.3:2> imshow(image,[]);
error: invalid value for array property "cdata"
error: set: expecting argument 2 to be a property name
error: set: expecting argument 4 to be a property name
error: set: expecting argument 6 to be a property name
error: called from:
error:   /usr/local/stow/octave-3.2.3/share/octave/3.2.3/m/image/__img__.m
at line 57, column 7
error:   /usr/local/stow/octave-3.2.3/share/octave/3.2.3/m/image/image.m
at line 75, column 5
error:   /usr/local/stow/octave-3.2.3/share/octave/3.2.3/m/image/imshow.m
at line 166, column 9
error: A(I): Index exceeds matrix dimension.
error: called from:
error:   
/usr/local/stow/octave-3.2.3/share/octave/3.2.3/m/plot/__go_draw_axes__.m
at line 383, column 22
error:   
/usr/local/stow/octave-3.2.3/share/octave/3.2.3/m/plot/__go_draw_figure__.m
at line 92, column 3
error:   
/usr/local/stow/octave-3.2.3/share/octave/3.2.3/m/plot/gnuplot_drawnow.m
at line 91, column 5


--judd


reply via email to

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