No bool matrices for imagesc in tip?

Michael Goffioul michael.goffioul at gmail.com
Sat Nov 1 16:51:33 CDT 2008


On Sat, Nov 1, 2008 at 7:15 PM, Thomas Weber
<thomas.weber.mail at gmail.com> wrote:
> Am Samstag, den 01.11.2008, 10:14 +0000 schrieb Michael Goffioul:
>> My question was badly expressed. It should have been: does
>> Matlab accepts that you "set(img, 'cdata', m)", where img is
>> an image handle and m is a bool matrix?
>
>>> m = ones(10,10)>0;
>>> img = figure()
>>> set(img, 'cdata', m)
> ??? There is no 'cdata' property in the 'figure' class.

Indeed. As I mentioned, img should be an image handle, not
a figure handle.

Michael.


More information about the Octave-maintainers mailing list