File:Example of spectral "folding" caused by sampling a real-valued waveform.png
Example_of_spectral_"folding"_caused_by_sampling_a_real-valued_waveform.png (533 × 321 pixels, file size: 14 KB, MIME type: image/png)
Captions
This graph image could be re-created using vector graphics as an SVG file. This has several advantages; see Commons:Media for cleanup for more information. If an SVG form of this image is available, please upload it and afterwards replace this template with
{{vector version available|new image name}} .
It is recommended to name the SVG file “Example of spectral "folding" caused by sampling a real-valued waveform.svg”—then the template Vector version available (or Vva) does not need the new image name parameter. |
Summary
[edit]DescriptionExample of spectral "folding" caused by sampling a real-valued waveform.png |
English: When a continuous-time function is sampled, it becomes indistinguishable from other functions (called aliases) that match the same set of samples. In the frequency domain (Fourier transform), the aliases appear as new frequencies that aren't in the original function. In this example, the original frequency content is between 0 and 22050 Hz. The region [22050,44100] contains new content caused by sampling at 44100 samples/sec. The mirror image effect is referred to as "folding". |
|||
Date | ||||
Source | Own work | |||
Author | Bob K | |||
Permission (Reusing this file) |
I, the copyright holder of this work, hereby publish it under the following license:
|
|||
PNG development InfoField | N This PNG graphic was created with GNU Octave. |
|||
Octave/gnuplot source InfoField | click to expand
This graphic was created by the following Octave script: pkg load signal
graphics_toolkit gnuplot
% This did not work
% load 'music.mat' % adds variables wavedata and samplerate to the workspace
%{
music.mat was created by these steps in program Audacity:
• Open a stereo mp3 file.
• Right-click on the filename, and choose Split Stereo to Mono in the drop-down menu.
• Delete one channel.
• Highlight a section to be exported.
• Choose Export Selected Audio.
• Choose Save As Type: Other Uncompressed Files.
• Under Options, set Header=MAT5 and Encoding=Signed 16-bit PCM
%}
%This did work
[wavedata,samplerate] = audioread('music.ogg');
pwelch(wavedata, hann(512), 0.25, 512, samplerate, 'whole', 'dB')
xlim([0 samplerate])
grid
title('Spectral folding, caused by sampling','FontSize', 14)
xlabel('Frequency (Hz)','FontSize', 14)
ylabel('Amplitude (dB)','FontSize', 14)
|
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 21:58, 23 October 2016 | 533 × 321 (14 KB) | Bob K (talk | contribs) | I changed the script to use pwelch() instead of periodogram(), and this is the new result. | |
00:41, 18 October 2016 | 768 × 533 (29 KB) | Bob K (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 en.wikipedia.org
- Usage on no.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.
PNG file comment |
|
---|---|
Horizontal resolution | 28.35 dpc |
Vertical resolution | 28.35 dpc |
File change date and time | 21:50, 23 October 2016 |