blob: 7dccc7be0d1bc197f71c41c793b7a4b4c6545d18 (
plain)
1
2
3
4
5
6
7
8
|
//Example 8_4
clc();
clear;
//To find the sound level in decibles
I0=10^-12 //units in w/m^2
I=5*10^-8 //units in w/m^2
Id=10*log10(I/I0)
printf("The intensity in decibles is %.2f dB",Id)
|