summaryrefslogtreecommitdiff
path: root/3648/CH14/EX14.2/Ex14_2.sce
blob: 44fdd92d565f503da2cd3195be69fbbbb0383468 (plain)
1
2
3
4
5
6
7
8
//Example 14_2
clc();
clear;
//To find the sound level of a sound wave
i1=10^-5    //Units in W/meter^2
i2=10^-12     //Units in W/meter^2
level=10*log10(i1/i2)    //units in dB
printf("The sound level of the sound wave is=%d dB",level)