Code covered by the BSD License  

Highlights from
Formation of Audio Signal Corrupted with Noise

Be the first to rate this file! 18 Downloads (last 30 days) File Size: 4.96 KB File ID: #36914

Formation of Audio Signal Corrupted with Noise

by

 

Function forms an audio signal corrupted with noise and signal-to-noise ratio has a specified value

| Watch this File

File Information
Description

Function SNRN forms an array of an audio signal which is corrupted with noise and signal-to-noise ratio has a specified value SNR. We suppose that SNR was defined as a ratio of the root-mean-square value of amplitudes of a signal A(s) and a noise A(n). It is supposed that value of SNR was expressed in decibels (dB). It is supposed, too, that both the signal and the noise were measured at the same points, within the same bandwidth, and
across the same impedance. Thus, for calculations we used the
following formula: SNR = 20log10(A(s)/A(n)). If array of noise has length not equal to length of array of signal then array of noise will be automatically resized to fit length of array of signal. It is supposed that audio signal was received via WAVREAD.
Under certain conditions the corrupted signal is normalized to prevent data clipping during recording with use of WAVWRITE. Normalization coefficient depends on number of bits per sample.
They are 8, 16 (default), 24, 32. Both signal and noise have a format - "double".

Required Products MATLAB
MATLAB release MATLAB 7.6 (R2008a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.

Contact us