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

Saving a Matlab figure to file using command-line [Matlab]

Once again, this is another example that Matlab does weird things with its figure window.  If you use the default function "saveas" it does not save the exact size as it is viewed on your screen....

posted by on Sep 30 2011
Comments (0) |

Computing FFT Twiddle Factors [Matlab]

This text, figures, and code snippet are also available in downloadable PDF format Typical applications of an N-point radix-2 FFT accept N x(n) input time samples and compute N X(m) frequency-domai...

posted by Rick Lyons on Nov 28 2011
Comments (1) |

Discrete Haar Wavelet Transform [Matlab]

See article at http://www.dsprelated.com/showabstract/3639.php for the theory....

posted by Duraisamy Sundararajan on Jan 5 2012
Comments (0) |

Echo Filter [Matlab]

An Audio Echo Filter is an FIR filter that repeats a sound after a given Delay attenuating the repetitions.  You may test the filter using any input signal (i.e. Matlab "splat" signal).  In ...

posted by Miguel De Jesus on Dec 1 2010
Comments (2) |

Flanger Audio Effect [C]

This is an implementation of the flanger effect using my previous entry that is a fractional delay line, as a building block. Basically the flanger effect is achieved by making the delay vary in ti...

posted by Gabriel Rivas on Apr 22 2011
Comments (0) |

Generate ideal QPSK..64QAM symbol error rates (reference result) [Matlab]

Calculates the symbol error rate of QPSK/16QAM/64QAM/256QAM/1024QAM modulation for additive white Gaussian noise Output: ...

posted by Markus Nentwig on Oct 21 2010
Comments (0) |

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

Basic Kalman filter [Scilab]

This is the most basic implementation of a Kalman filter. For measured position, velocity and acceleration, the Kalman filter estimates the true datas. This example works with Scilab....

posted by Sylvain B on Jan 20 2011
Comments (13) |

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

Adding a Controlled Amount of Noise to a Noise-Free Signal [Matlab]

The following gives two snippets of Matlab code. The first snippet is a function whose inputs are: (1) a real-valued signal, and (2) a desired signal-to-noise ratio (SNR) measured in dB. That 'SNR_Set...

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