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: NoneSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: InvalidAssigned to: David Bateman <dbateman>
Originator Name: Open/Closed: Closed
Release: 3.2.3Operating 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 File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by dbateman (Posted a comment)
  • -unavailable- added by elrezad (Submitted the item)
  •  

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

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 07 Jul 2010 06:48:14 PM UTCdbatemanOpen/ClosedOpen=>Closed
    Wed 07 Jul 2010 06:48:01 PM UTCdbatemanStatusNone=>Invalid
      Assigned toNone=>dbateman

    Back to the top


    Powered by Savane 3.1-cleanup1