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

 
 

bug #30380: Incorrect plotting of a Uint8 variable

Submitted by:  alberto <elrezad>
Submitted on:  Wed 07 Jul 2010 02:16:31 PM UTC  
 
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Invalid Assigned to:  David Bateman <dbateman>
Originator Name:  Open/Closed:  Closed
Release:  3.2.3 Operating System:  Microsoft Windows

Add a New Comment (Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project MemberIn charge of this item.
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)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project 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
        Assigned toNone => dbateman

    Back to the top


    Powered by Savane 3.5