Sign in

username or email:

password:



Not a member?
Forgot your password?

Search code



Search tips

Ads

See Also

Embedded SystemsFPGA

Matlab Code, Examples, Snippets

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

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

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

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

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

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

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

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) |
| 1 | | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 |