File:Quantization nodither noshaping spectrum.png
Tools
Actions
General
Print/export
In other projects
Appearance
From Wikimedia Commons, the free media repository
Size of this preview: 960 × 761 pixels. Other resolutions: 330 × 262 pixels | 1,060 × 840 pixels.
Original file (1,060 × 840 pixels, file size: 11 KB, MIME type: image/png)
File information
Structured data
Captions
Captions
Add a one-line explanation of what this file represents
Summary
[edit]| DescriptionQuantization nodither noshaping spectrum.png |
English: Spectrum of a 750 Hz pure tone sampled at 48 kHz and quantized to 4 bits using neither dither nor noise shaping.
% quantization_nodither_noshaping.m
% Quantization demo using neither dither nor noise shaping.
% Authors: Fatbag
% License: Public domain (no warranties)
rand('state', 0xdeadbeef);
f_s = 48000; % sampling rate (samples/sec)
f0 = 750; % frequency of sine wave (Hz)
t_s = 1/f_s; % sampling period (sec/sample)
w0 = 2*pi*f0; % angular frequency of sine wave (Hz)
t = (0 : 4095) * t_s;
x = round(15*sin(w0*t));
figure 1;
plot(t(1:ceil(2*f_s/f0)), x(1:ceil(2*f_s/f0)));
axis([0, ceil(2*f_s/f0)*t_s, -20, 20]);
grid on;
xlabel('t');
ylabel('x(t)');
figure 2;
X = fft(x(1:4096));
X = X(1:2048);
m = 20*log10(arrayfun(@norm, X));
m -= max(m);
m(~isfinite(m)) = -1000;
f = (0:2047)/2048*f_s/2;
plot(f, m);
axis([0, f_s/2, -100, 0]);
grid on;
xlabel('Frequency (Hz)');
ylabel('Relative power (dB)');
print 'quantization_nodither_noshaping_spectrum_uncropped.png'; |
| Date | |
| Source | Own work |
| Author | Andrew D'Addesio |
Licensing
[edit]I, the copyright holder of this work, hereby publish it under the following license:
| This file is made available under the Creative Commons CC0 1.0 Universal Public Domain Dedication. | |
| The person who associated a work with this deed has dedicated the work to the public domain by waiving all of their rights to the work worldwide under copyright law, including all related and neighboring rights, to the extent allowed by law. You can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission.
http://creativecommons.org/publicdomain/zero/1.0/deed.enCC0Creative Commons Zero, Public Domain Dedicationfalsefalse |
File history
Click on a date/time to view the file as it appeared at that time.
| Date/Time | Thumbnail | Dimensions | User | Comment | |
|---|---|---|---|---|---|
| current | 07:21, 13 November 2015 | 1,060 × 840 (11 KB) | X-Fi6 (talk | contribs) | User created page with UploadWizard |
You cannot overwrite this file.
File usage on Commons
There are no pages that use this file.
File usage on other wikis
The following other wikis use this file:
- Usage on ca.wikipedia.org
- Usage on en.wikipedia.org
- Usage on et.wikipedia.org
Metadata
This file contains additional information such as Exif metadata which may have been added by the digital camera, scanner, or software program used to create or digitize it. If the file has been modified from its original state, some details such as the timestamp may not fully reflect those of the original file. The timestamp is only as accurate as the clock in the camera, and it may be completely wrong.
| Horizontal resolution | 59.06 dpc |
|---|---|
| Vertical resolution | 59.06 dpc |
| Software used |
Structured data
Items portrayed in this file
depicts
some value
13 November 2015
11,659 byte
840 pixel
1,060 pixel
image/png
66c4543fb4f4737076b8bcc9606c20093ac259b3
Hidden categories: