summaryrefslogtreecommitdiff
path: root/help/en_US/udecode.xml
blob: 2a0e5670f45c02f7d8383d8dcbab3ea50a1a758d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<?xml version="1.0" encoding="UTF-8"?>

<!--
 *
 * This help file was generated from udecode.sci using help_from_sci().
 *
 -->

<refentry version="5.0-subset Scilab" xml:id="udecode" xml:lang="en"
          xmlns="http://docbook.org/ns/docbook"
          xmlns:xlink="http://www.w3.org/1999/xlink"
          xmlns:svg="http://www.w3.org/2000/svg"
          xmlns:ns3="http://www.w3.org/1999/xhtml"
          xmlns:mml="http://www.w3.org/1998/Math/MathML"
          xmlns:scilab="http://www.scilab.org"
          xmlns:db="http://docbook.org/ns/docbook">

  <refnamediv>
    <refname>udecode</refname>
    <refpurpose>Decodes the input uniformly quantized values</refpurpose>
  </refnamediv>


<refsynopsisdiv>
   <title>Calling Sequence</title>
   <synopsis>
   y=uencode(u,n,v,'saturatemode')
   </synopsis>
</refsynopsisdiv>

<refsection>
   <title>Parameters</title>
   <variablelist>
   </variablelist>
</refsection>

<refsection>
   <title>Description</title>
   <para>
Uniformly decodes the input vector or n-dimensional array of integers u with peak values +/- v
If u has only positive values, the range of integers is assumed to be [0,2^n-1]
If u has positive and negative values the range of integers is assumed to be [-2^(n-1),2^(n-1)-1]
If v is not specified, its default value is 1
If saturatemode='wrap' the output is wrapped using modulo arithmetic if overflow occurs
If saturatemode='saturate' the output is saturated if overflow accors
Example
u = int8([-1 1 2 -5]);
ysat = udecode(u,3)
ysat  =
   </para>
   <para>
- 0.25    0.25    0.5  - 1.
Author
Ankur Mallick
[1] International Telecommunication Union. General Aspects of Digital Transmission Systems: Vocabulary of Digital Transmission and Multiplexing, and Pulse Code Modulation (PCM) Terms. ITU-T Recommendation G.701. March, 1993.
</para>
</refsection>

<refsection>
   <title>See also</title>
   <simplelist type="inline">
   <member><link linkend="uencode">uencode</link></member>
   <member><link linkend="floor">floor</link></member>
   </simplelist>
</refsection>
</refentry>