octave-maintainers
[Top][All Lists]
Advanced

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

Re: No bool matrices for imagesc in tip?


From: Michael Goffioul
Subject: Re: No bool matrices for imagesc in tip?
Date: Fri, 31 Oct 2008 20:08:22 +0000

On Fri, Oct 31, 2008 at 3:46 PM, Thomas Weber
<address@hidden> wrote:
> Hi,
>
> consider the following:
>
>        imagesc(ones(10,10)>0)
>
> This works in 3.0.1, but fails in current tip (8487:dc62132651db) with
>
> imagesc(ones(10,10)>0)
> 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:   
> /home/weber/sources/vcs/mercurial/octave-build/scripts/image/__img__.m at 
> line 60, column 7
> error:   /home/weber/sources/vcs/mercurial/octave-build/scripts/image/image.m 
> at line 78, column 5
> error:   
> /home/weber/sources/vcs/mercurial/octave-build/scripts/image/imagesc.m at 
> line 114, column 7
> error:   
> /home/weber/sources/vcs/mercurial/octave-build/scripts/image/imagesc.m at 
> line 63, column 9
> error: A(I): Index exceeds matrix dimension.
> error: called from:
> error:   
> /home/weber/sources/vcs/mercurial/octave-build/scripts/plot/__go_draw_axes__.m
>  at line 334, column 22
> error:   
> /home/weber/sources/vcs/mercurial/octave-build/scripts/plot/__go_draw_figure__.m
>  at line 58, column 8
> error:   
> /home/weber/sources/vcs/mercurial/octave-build/scripts/plot/gnuplot_drawnow.m 
> at line 66, column 5
>
>
> Casting the bool matrix to double works around this, but is this expected?

What does Matlab do?

Michael.


reply via email to

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