Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Amplitude (Read 3019 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Amplitude

Hi,
I have been recording sounds in Matlab and ploting them to see the shape of the envelope.  I understand that the signal is displayed over time and has a general amplitude(from 1 to -1). 
My question is how can I convert this general amplitude into something useful like values in dB or voltage.  Does anyone know?

Thanks
Jay

Amplitude

Reply #1
L being the level displayed, the formula for the voltage is trivial :

V = Vmax x L

In db, it is

20 x log10 (L)

I never used mathlab, so I can't help you to use these formulae.

 

Amplitude

Reply #2
10*log10(sample_vector)

try that in matlabcode.