[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Support for 8 bit integers
From: |
pkienzle |
Subject: |
Re: Support for 8 bit integers |
Date: |
Fri, 28 Nov 2003 13:28:07 +0000 |
Other than requiring 8x memory, the following is the same as uint8.
function y = uint8(x)
y = round(x); # or maybe ceil() or floor().
y(y<0) = 0;
y(y>255) = 255;
endfunction
Paul Kienzle
> Is it possible to create 8 bit integer objects with
> Octave? What I am thinking about is something like the
> Matlab function: "uint8(...)", which converts floating
> point numbers to 8 bit integers.
>
> I have looked in the Octave manual and in the
> mailinglist archive. However, with no luck.
>
>
> Yahoo! Mail (http://dk.mail.yahoo.com) - Gratis: 6 MB lagerplads, spamfilter
> og
> virusscan
>
>
>
> -------------------------------------------------------------
> Octave is freely available under the terms of the GNU GPL.
>
> Octave's home on the web: http://www.octave.org
> How to fund new projects: http://www.octave.org/funding.html
> Subscription information: http://www.octave.org/archive.html
> -------------------------------------------------------------
>
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------