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
Defined a variable in work space: The variables defined in the script will become a part of the workspace: >> clear >> who >> mysummfile    15 >> who

Example of Interpolation and extrapolation: The MATLAB has a function to do this, known as polyfit. The function polyfit finds the coefficients of the polynomial of the partic

Illustration of finding a sting: Let's enlarge this, and write a script which creates a vector of strings which are phrases. The outcome is not suppressed so that the string

Illustration of Sound files: For illustration, the following script generates a subplot which shows the signals from chirp and from train, which is as shown in figure:

Example of file ploting data: As the other example, a data file called 'compsales.dat' stores the sales figures (in millions) for divisions in a company. Each line in the f

Dot Product: The dot or inner product of two vectors a and b is written as a • b and is defined as  In another words, this is like matrix multiplication when multiplyi

Replacing, Finding, and separating strings: There are numerous functions which find and replace the strings, or parts of strings, within the other strings and functions which

Reading from a File in a While Loop: Though in most languages the combination of a loop and an if statement would be essential to determine whether or not the elements in a ve

Scaling:   change a row by multiplying it by a non-zero scalar sri →  ri For illustration, for the matrix:

Execute a exponential function program: Running the script will take up the menu as shown in the figure: Then, what happens will totally depend on which button(s) the