Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

uint8 (MathScript RT Module Function)

LabVIEW 2010 Help

Edition Date: June 2010

Part Number: 371361G-01

»View Product Info

Owning Class: support

Requires: MathScript RT Module

Syntax

c = uint8(a)

Description

Converts the input elements to 8-bit unsigned integers.

Details

Examples

Inputs

Name Description
a Specifies a numeric scalar, vector, or matrix.

Outputs

Name Description
c Returns the elements of a as 8-bit unsigned integers. c is a scalar, vector, or matrix of the same size as a. If a is a complex number, this function converts the real and imaginary parts of the number separately and then returns a complex number that consists of those parts. To return the 8-bit unsigned representation of a when the input is complex, use the real function to extract the real part of a, then use the uint8 function to convert the real part.

Details

If an element in a is greater than 2^8-1, the corresponding element in c is 2^8-1. If an element in a is less than 1, the corresponding element in c is 0.

Examples

A = [256.333, 56.4, -88]
C = uint8(A)

Related Topics

double
int16
int32
int64
int8
single
uint16
uint32
uint64


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit