4-bit-linear-PCM.svg
Size of this PNG preview of this SVG file:
500 × 375 pixels
.
Other resolutions:
320 × 240 pixels
|
640 × 480 pixels
|
1,024 × 768 pixels
|
1,280 × 960 pixels
|
2,560 × 1,920 pixels
.
Summary
Description 4-bit-linear-PCM.svg |
English:
Encoding an analogue signal to 4-bit linear PCM
|
Date | |
Source | Own work |
Author | Aquegg |
Other versions | Derivative works of this file: Pcm.svg : |
SVG development
InfoField
|
This diagram was created with
Gnuplot
.
This plot uses
embedded
text that can be
easily translated
using a text editor.
|
Source code
InfoField
|
Gnuplot codeset terminal svg size 500 375 fsize 16 enhanced
set output "4-bit-linear-PCM.svg"
set nokey
set noborder
set grid ytics lw 1.5 lt 1 lc rgb 'grey25'
set ytics("–8"-8,"–7"-7,"–6"-6,"–5"-5,"–4"-4,"–3"-3,"–2"-2,"–1"-1,"0"0,"1"1,"2"2,"3"3,"4"4,"5"5,"6"6,"7"7)
set tic scale 0
unset xtics
n=23
set xrange [0:n]
set yrange [-8:7]
f(x)=4*(sin(2*pi*x/n)+sin(6*pi*x/n-1))
set table 'tmp.dat'
plot f(x)-.5
unset table
set samples n
plot 'tmp.dat' w lines lw 4, floor(f(x)) w impulses lc rgb 'grey50' lw 1.5, floor(f(x)) w points pt 7 ps .8
|
Licensing
I, the copyright holder of this work, hereby publish it under the following license:
This file is licensed under the
Creative Commons
Attribution-Share Alike 3.0 Unported
license.
-
You are free:
- to share – to copy, distribute and transmit the work
- to remix – to adapt the work
-
Under the following conditions:
- attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
- share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.