~ubuntu-branches/ubuntu/karmic/scilab/karmic

« back to all changes in this revision

Viewing changes to man/programming/iconvert.cat

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2002-03-21 16:57:43 UTC
  • Revision ID: james.westby@ubuntu.com-20020321165743-e9mv12c1tb1plztg
Tags: upstream-2.6
ImportĀ upstreamĀ versionĀ 2.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
iconvert          Scilab Group          Scilab Function            iconvert
 
2
NAME
 
3
   iconvert  - conversion to 1 or 4 byte integer representation 
 
4
  
 
5
CALLING SEQUENCE
 
6
 y=iconvert(X,itype)
 
7
PARAMETERS
 
8
 X    : matrix of floats or integers
 
9
      
 
10
 y    : matrix of integers coded on one, two or four bytes.
 
11
      
 
12
DESCRIPTION
 
13
   converts and stores data two one, two or four bytes integers. 
 
14
  
 
15
 itype=0      : return floating point numbers
 
16
              
 
17
 itype=1      : return int8 numbers in the range [-128,127] 
 
18
              
 
19
 itype=11     : return uint8 numbers in the range [0,255] 
 
20
              
 
21
 itype=2      : return int16 numbers in the range [-32768,32767] 
 
22
              
 
23
 itype=12     : return uint16 numbers in the range [0, 65535] 
 
24
              
 
25
 itype=4      : return int32 numbers in the range [-2147483648,2147483647]
 
26
              
 
27
              
 
28
 itype=14     : return uint32 numbers in the range [0, 4294967295] 
 
29
              
 
30
EXAMPLE
 
31
 b=int32([1 -120 127 312])
 
32
 y=iconvert(b,8)
 
33
 
 
34
SEE ALSO
 
35
   double, inttype  
 
36