Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Sound intensity in MATLAB

Status
Not open for further replies.

alitavakol

Member level 2
Joined
Dec 1, 2005
Messages
47
Helped
2
Reputation
4
Reaction score
0
Trophy points
1,286
Location
Iran
Activity points
1,653
Hi
I know something about sound playing in MATLAB. we define a vector containing voltage values to be sent to the audio device.
I can play any frequency. how about its intensity.
 

sound in MATLAB

wavplay(1.0 * sin(1:1000));   % loud
wavplay(0.1 * sin(1:1000));   % soft
 

Re: sound in MATLAB

You can use
sound(data,fs)
where data is vector and fs is sampleing frequency
 

Re: sound in MATLAB

javad_akhlaghi said:
You can use
sound(data,fs)
where data is vector and fs is sampleing frequency

I like used for it function soundsc() (instread sound())
last parameter that :
SOUNDSC(Y,...,SLIM) where SLIM = [SLOW SHIGH] linearly scales values in Y in the range [SLOW, SHIGH] to [-1, 1]. Values outside this range are not clipped. By default, SLIM is [MIN(Y) MAX(Y)].
 

Re: sound in MATLAB

You can use Simlink (from wave file and to wave file) and define a gain in order to modify the amplitude of the sound file.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top