Sign in

username or email:

password:



Not a member?
Forgot your password?

Search code



Search tips

Ads

See Also

Embedded SystemsFPGA

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

Zero Crossing Counter [Matlab]

In some DSP applications, it can be very helpful to know how many times your signal has crossed the zero-line (amplitude origin).  How is this helpful?  Well, zero-crossings can tell you ve...

posted by on Jul 9 2011
Comments (3) |

Equal Loudness Curves (ISO226) [Matlab]

What is loudness?  No, it is not the setting of your volume knob.  In audio processing, loudness refers to a family of curves that generally describes how the the human ear perceives how "lo...

posted by on Jun 21 2011
Comments (0) |

Signal fitting with subsample resolution [Matlab]

Update: The most recent version can be found here and a demonstration here.The downloadable code is a "real-life" implementation that is a good choice for "real-life problems", but has grown to almost...

posted by Markus Nentwig on Aug 16 2011
Comments (0) |

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 (2) |

High accuracy FFT interpolation [Matlab]

The zero-padding FFT algorithm is a well-known method for applying a continuous delay to a signal. Yet it has the drawback that its accuracy is poor, since the interpolation error only decreases lin...

posted by Jesus Selva on Nov 4 2010
Comments (3) |

Pink Noise Generator [Matlab]

This code snippet generates "pink" noise by generating white noise and apply filter to turn it into pink noise.  See wiki article: http://en.wikipedia.org/wiki/Pink_noise In general, pink noise ...

posted by on Sep 26 2011
Comments (0) |

GSM (GMSK) power spectrum equation [Matlab]

A simple, empirical model for the power spectrum shape of a GMSK-modulated GSM signal, generated according to 3GPP TS 45.004 section 2 on a signal stream without slot structure. The picture shows t...

posted by Markus Nentwig on Sep 18 2011
Comments (0) |

A-weighting filter [Matlab]

The code below will generate coefficients for a digital A-weighting filter.  What is an A-weighting filter you say?  Perhaps this wikipedia article can help? http://en.wikipedia.org/wiki/A-w...

posted by on Sep 25 2011
Comments (0) |

Fixed-point Math Library [C]

We provide a set of macros and routines that perform fixed-point arithmetic, including basic arithmetic operators, conversions between fixed-point and floating point types, sines and cosines, exponent...

posted by Jordan Rhee on Nov 30 2010
Comments (0) |

Computing CIC Filter Register Pruning Using Matlab [Matlab]

The following Matlab code computes the amount register bit-pruning described in Eugene's Hogenauer's famous paper on cascaded integrator-comb (CIC) decimation filters [1]. Although there are many de...

posted by Rick Lyons on Feb 15 2012
Comments (3) |
| | 2 | | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 |