File:Example dft dct.svg
Captions
Captions
Summary
[edit ]The plot shows the differences between a DFT and a 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 Matlab code:
thus creating a file called example_dft_dct.dat. Then I ran the following Gnuplot code:
Matlab code
n=0:10; E=[n;abs(fft(n));dct(n)]; E=E'; save-ascii'example_dft_dct.dat'E;
Gnuplot code
# set the output setterminalsvg setoutput"example_dft_dct.svg" # axis properties setxlabel"n" setxrange[-1:11] setxzeroaxislinetype-1linewidth0.5 setyzeroaxislinetype-1linewidth0.5 setxticsaxis unsetytics setkeyoff setpointsize1.5 # Set up a four-pane multiplot setsize1,1 setorigin0,0 setmultiplot settitle"A generic sampled signal" setsize1,0.35 setorigin0,0.69 plot"example_dft_dct.dat"using1:1withpoints1 plot"example_dft_dct.dat"using1:1withimpulses1 settitle"The modulus of its DFT" setsize1,0.35 setorigin0,0.36 plot"example_dft_dct.dat"using1:2withpoints2 plot"example_dft_dct.dat"using1:2withimpulses2 settitle"Its DCT" setsize1,0.35 setorigin0,0.03 plot"example_dft_dct.dat"using1:3withpoints3 plot"example_dft_dct.dat"using1:3withimpulses3
Licensing
[edit ]attribution share alike 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.
attribution share alike
- 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.
File history
Click on a date/time to view the file as it appeared at that time.
| Date/Time | Thumbnail | Dimensions | User | Comment | |
|---|---|---|---|---|---|
| current | 11:43, 18 November 2005 | Thumbnail for version as of 11:43, 18 November 2005 | 600 ×ばつ 480 (16 KB) | Alejo2083 (talk | contribs) | 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 |
You cannot overwrite this file.
File usage on Commons
The following 2 pages use this file:
File usage on other wikis
The following other wikis use this file:
- Usage on cs.wikipedia.org
- Usage on en.wikipedia.org
- Usage on ja.wikipedia.org
- Usage on kn.wikipedia.org
- Usage on ko.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.
| Image title | Produced by GNUPLOT 4.0 patchlevel 0 |
|---|