Sign in

username:

password:



Not a member?

Search code



Search tips


See Also

Embedded SystemsFPGAElectronics

DSP Code Sharing - Code Snippets - Code Examples

If you would you like to share a piece of DSP related code with the community, please click here.

By Programming Language:
All LanguagesASM | Bluespec SystemVerilog (BSV) | C | C++ | Matlab | Mixed C and ASM | Octave | Python | Scilab 

By Processor:
All ProcessorsARM | FPGA/ASIC (RTL) | Freescale DSP56F8xx | SHARC | TI C64x | TI C67x | TI F28x 

Sorted by:
Most Popular First | Highest Rated First | Most Recent First


NEW: Suggest a Snippet

Resampling based on FFT [Matlab]

This code can be used to avoid resampling overflows in matlab, and perform approximate resampling....

posted by Vashishth Chaudhri on Dec 16 2010
Comments (1) |

Even/Odd FIR filter structure [Matlab]

Designers of filters in FPGAs or ASICs may at times need to break their filter structure into two even/odd streams at half speed each but double resource. As there will be interdependency of the two s...

posted by kadhiem Ayob on Oct 22 2011
Comments (0) |

Frequency Estimate using FFT [Matlab]

In response to a code snippet request, this code is a very simple version of a Frequency Estimator using the FFT method in matlab. Only single tones can be estimated with this code, and the resolution...

posted by Charna Parkey on Feb 2 2011
Comments (1) |

Amplitude spectrum of 1D signal [Matlab]

This basic function should be in everyones Matlab toolbox. It plots a one sided amplitude spectrum of a 1D signal. It has functionality to plot it on semilog scale, specify color of the plot and speci...

posted by Aniket Vartak on Nov 3 2010
Comments (0) |

Decimation or Downsampling in scilab [Scilab]

This program perfoms Multirate Signal Processing in scilab - Downsampling a sinusoidal signal by a factor of 2...

posted by Senthilkumar R on Mar 21 2011
Comments (0) |

Frequency Sweep WAV Creator [Matlab]

SineSweep.m creates a custom sine wave sweep. This was used to test the frequency responce of a system but you may find other applications! ...

posted by Ron Elbaz on Mar 25 2011
Comments (0) |

Testing the Flat-Top Windowing Function [Matlab]

The following code is for testing the Flat-Top Windowing Function, used for the Accurate Measurement of a Sinusoid's Peak Amplitude Based on FFT Data...

posted by Rick Lyons on Dec 14 2011
Comments (0) |

Circular Convolution [Matlab]

The output of convolving two finite streams builds up from zero and tails off towards zero. In some cases e.g. modelling or playing a test vector in actual hardware, this is undesirable and will lead...

posted by kadhiem Ayob on Mar 3 2012
Comments (0) |

FFT for arbitrary time and frequency grids (Chirp-z Transform) [Matlab]

The FFT is usable only for specific values of the time and frequency spacings;  (their product must be the inverse of a highly composite integer).  In practice, however, we find arbitrary sp...

posted by Jesus Selva on Nov 17 2011
Comments (0) |

Discrete Fourier Transform [C++]

This is an implementation of a Discrete Fourier Transform, also known as DFT.  This code is ideal for DSP beginners and students.  This implementation is based on the assumption that the inp...

posted by Miguel De Jesus on Dec 14 2010
Comments (2) |
previous | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | next