blob: c5fcb95a8c8365bf8359abd2ce2b6637c7066d14 (
plain)
1
2
3
4
5
6
7
8
9
10
|
clc
clear
//Input data
I=2//Sound intensity is doubled or Intensity ratio
//Calculations
b=10*log10(I)//Relative intensity in dB
//Output
printf('Increase in the acoustic intensity level is %3.2f dB',b)
|