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
48
Helped
2
Reputation
4
Reaction score
0
Trophy points
1,286
Location
Iran
Activity points
1,666
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.
 

echo47

Advanced Member level 5
Joined
Apr 7, 2002
Messages
3,942
Helped
637
Reputation
1,272
Reaction score
88
Trophy points
1,328
Location
USA
Activity points
33,178
sound in MATLAB

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

javad_akhlaghi

Newbie level 5
Joined
Oct 4, 2005
Messages
8
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,283
Activity points
1,356
Re: sound in MATLAB

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

Doka

Junior Member level 3
Joined
Nov 17, 2004
Messages
26
Helped
3
Reputation
6
Reaction score
0
Trophy points
1,281
Location
Russia
Activity points
265
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)].
 

toma_norbi

Newbie level 2
Joined
Dec 16, 2005
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,296
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.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top