Image:Example dft dct.svg

From Wikipedia, the free encyclopedia

Example_dft_dct.svg (SVG file, nominally 600 × 480 pixels, file size: 16 KB)

Wikimedia Commons logo This is a file from the Wikimedia Commons. The description on its description page there is shown below.
Commons is a freely licensed media file repository. You can help.

[edit] Summary

Description

The plot shows the differences between a en:DFT and a en:DCT of a generic signal.

The first plot is a sampled ramp in the time domain. The second one represents the modulus of its DFT. The third one the plot of its DCT.

I obtained it in a two step process. First I ran the following en:Matlab code:


n = 0:10;
E = [ n; abs(fft(n)); dct(n)];
E = E';
save -ascii 'example_dft_dct.dat' E;

thus creating a file called example_dft_dct.dat. Then I ran the following en:Gnuplot code:


# set the output
set terminal svg
set output "example_dft_dct.svg"

# axis properties
set xlabel "n"
set xrange [-1:11]
set xzeroaxis linetype -1 linewidth 0.5
set yzeroaxis linetype -1 linewidth 0.5
set xtics axis
unset ytics
set key off

set pointsize 1.5

# Set up a four-pane multiplot
set size 1,1
set origin 0,0
set multiplot

set title "A generic sampled signal"
set size 1,0.35
set origin 0,0.69
plot "example_dft_dct.dat" using 1:1 with points 1
plot "example_dft_dct.dat" using 1:1 with impulses 1

set title "The modulus of its DFT"
set size 1,0.35
set origin 0,0.36
plot "example_dft_dct.dat" using 1:2 with points 2
plot "example_dft_dct.dat" using 1:2 with impulses 2

set title "Its DCT"
set size 1,0.35
set origin 0,0.03
plot "example_dft_dct.dat" using 1:3 with points 3
plot "example_dft_dct.dat" using 1:3 with impulses 3

Source own work
This vector image was created with gnuplot.
Date

November 2005

Author

Alessio Damato

Permission
(Reusing this image)

see below



[edit] Licensing

I, the copyright holder of this work, hereby publish it under the following licenses:
GNU head Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation license, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation license".

Aragonés | العربية | Asturianu | Български | বাংলা | ইমার ঠার/বিষ্ণুপ্রিয়া মণিপুরী | Brezhoneg | Bosanski | Català | Cebuano | Česky | Dansk | Deutsch | Ελληνικά | English | Esperanto | Español | Eesti | Euskara | فارسی | Suomi | Français | Gaeilge | Galego | עברית | Hrvatski | Magyar | Bahasa Indonesia | Ido | Íslenska | Italiano | 日本語 | ქართული | ភាសាខ្មែរ | 한국어 | Kurdî / كوردی | Latina | Lëtzebuergesch | Lietuvių | Bahasa Melayu | Nnapulitano | Nederlands | ‪Norsk (nynorsk)‬ | ‪Norsk (bokmål)‬ | Occitan | Polski | Português | Română | Русский | Slovenčina | Slovenščina | Shqip | Српски / Srpski | Svenska | తెలుగు | ไทย | Türkçe | Українська | اردو | Tiếng Việt | Volapük | Yorùbá | ‪中文(中国大陆)‬ | ‪中文(台灣)‬ | +/-

Some rights reserved
Creative Commons Attribution iconCreative Commons Share Alike icon
This file is licensed under the Creative Commons Attribution ShareAlike license versions 2.5, 2.0, and 1.0

العربية | Български | Català | Česky | Dansk | Deutsch | English | Español | Euskara | فارسی | Français | עברית | Italiano | 日本語 | 한국어 | Lietuvių | Nederlands | Polski | Português | Русский | Svenska | தமிழ் | Türkçe | 中文 | 中文 | +/-

You may select the license of your choice.

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeDimensionsUserComment
current11:43, 18 November 2005600×480 (16 KB)Alejo2083 ( The plot shows the differences between a en:DFT and a en:DCT of a generic signal. The first plot is a sampled ramp in the time domain. The second one represents the modulus of its DFT. The third one the plot of its DCT. I obtained it in a two)
The following pages on the English Wikipedia link to this file (pages on other projects are not listed):