Sound files, MATLAB in Engineering

Sound Files:

The sound signal is an illustration of a continuous signal which is sampled to result in a discrete signal. In this situation, sound waves traveling through the air are recorded as a set of measurements which can then be used to reconstruct the original sound signal as closely as possible. The sampling frequency or sampling rate is the number of samples taken per time unit, for illustration per second.

The Sound signals are generally measured in Hertz (Hz).

In MATLAB, the discrete sound signal is presented by a vector, and the frequency is measured in Hertz. The MATLAB has numerous MAT-files which store, for various sounds, the signal vector in a variable y and the frequency in variable Fs. These MAT-files involve gong, chirp, laughter, train, splat, and handel. There is a built-in function, sound, which will send a sound signal to an output device like speakers. The function call

>> sound(y,Fs)

will play the sound presented by the vector y at the frequency Fs. For illustration, to hear the gong, load variables from the MAT-file and then play the sound by using the sound function:

>> load gong

>> sound(y,Fs)

The Sound is really a wave; the amplitudes are what are stored in the sound signal variable y. These are assumed to be in the range from -1 to 1. The plot function is used to show the data.  

Posted Date: 10/22/2012 8:05:11 AM | Location : United States







Related Discussions:- Sound files, Assignment Help, Ask Question on Sound files, Get Answer, Expert's Help, Sound files Discussions

Write discussion on Sound files
Your posts are moderated
Related Questions
Executing a program: Running the program would be completed by typing the name of the script; this would call the other functions: >> calcandprintarea Whenever prompt

Forward elimination: In forward elimination, we want to obtain a 0 in the a 21 position. To accomplish this, we can alter the second line in the matrix by subtracting from it

Function rmfield - structure: The function rmfield eliminates a field from the structure. It returns a new structure with field eliminated, but does not modify the original st

Illustration of if - else statement: The one application of an if-else statement is to check for errors in the inputs to a script. For illustration, a former script prompted t

Illustration of Gauss elimination: For illustration, for a 2 × 2 system, an augmented matrix be: Then, the EROs is applied to obtain the augmented matrix into an upper

Algorithm for appex subfunction: The algorithm for appex subfunction is as shown:  Receives x & n as the input arguments.  Initializes a variable for running sum of t

Evaluating a string: The function eval is used to compute a string as a function. For illustration, below is the string 'plot(x)'is interpreted to be a call to plot the functi

Use of built-in colormaps: MATLAB has built-in colormaps, it is also possible to generate others by using combinations of any colors. For illustration, the following generates

Replacement : Replace a row by adding it to (or subtract from it) a multiple of the other row. For a given row ri, this is written as   ri  - srj →  ri Note that when r

Image Processing: The Images are represented as grids, or matrices, of picture elements (known as pixels). In MATLAB an image usually is represented as a matrix in which each