bugGNU Octave - Bugs: bug #38858, Imagesc() doesn't work on logical...

 
 

bug #38858: Imagesc() doesn't work on logical matrices

Submitter:  None
Submitted:  Tue 30 Apr 2013 08:20:09 AM UTC
   
 
Category:  Plotting Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Matlab Compatibility
Status:  Fixed Assigned to:  None
Originator Name:  FSund Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 3.6.3
Operating System:  * GNU/Linux Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 04 Sep 2013 06:08:38 AM UTC, comment #1: 

Somewhere in the current development of Octave, this bug has been fixed. I can no longer reproduce the error given here with either gnuplot or fltk.

Mike Miller <mtmiller>
Group Member
Tue 30 Apr 2013 08:20:09 AM UTC, original submission:  

The following code in Octave 3.6.3 gives an error


imagesc(rand(10) > 0.5)



error: Invalid call to image.  Correct usage is:
[...]


The fix is of course to use

imagesc(double(rand(10) > 0.5))

but this isn't necessary in Matlab*. This might be a conscious choice by the developers, but I thought I should mention it.

*I haven't tried running this code in Matlab, but I found similar code in a script we were meant to use for a programming assignment, so I'm guessing imagesc() works with logical matrices in Matlab.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by mtmiller (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-09-04 mtmiller CategoryNone Plotting
        StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code