bugGNU Octave - Bugs: bug #30380, Incorrect plotting of a Uint8...

 
 

bug #30380: Incorrect plotting of a Uint8 variable

Submitter:  alberto <elrezad>
Submitted:  Wed 07 Jul 2010 02:16:31 PM UTC
   
 
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Invalid / Not an Octave Bug Assigned to:  dbateman
Originator Name:  Open/Closed:  * Closed
Release:  * 3.2.3 Operating System:  * Microsoft Windows
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 07 Jul 2010 06:48:01 PM UTC, comment #1: 

The uint8 type can represent values from 0 to 255. So

a=uint8(1:400)

is the same as

a=uint([1:255,255*ones(1,144)])

given that the integer types in octave saturates rather than overflow, which explains the plot.

D.

David Bateman <dbateman>
Group Member
Wed 07 Jul 2010 02:16:31 PM UTC, original submission:  

When you have an Uint8 array of more than 256 elements and you try to plot it, it only plots the first 256 elements. For example:

a=uint8(1:400);
plot(a);

will plot only the first 256 elements.

alberto <elrezad>

 

(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 dbateman (Posted a comment)
  • -email is unavailable- added by elrezad (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
    2010-07-07 dbateman Open/ClosedOpen Closed
    2010-07-07 dbateman StatusNone Invalid / Not an Octave Bug
        Assigned toNone dbateman

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code