Inaccuracy in obtaining the Absorption coefficient
Show older comments
Hello all,
I have an equation for attenuation of sound underwater. The expected plot of attenuation versus frequency is as shown below

But the obtained result is as below

clc
f= 0:1:1000;
xa = f.^2;
fa = (((0.11*(xa))/(1+(xa))) + ((44*(xa))/(4100+(xa))) + (2.75*(xa)/10000) + 0.003);
plot (f,fa);
The matlab code is as shown above.
For f=0, the plotted result should have been zero ( or 0.03 which is close to zero) as in first image. But the plotted value is somewhat near 2000.
Why am I not getting proper result?
Accepted Answer
More Answers (1)
Walter Roberson
on 20 Mar 2016
0 votes
What is the point of calculating ga, x, y, and so on, if you are not going to use them? You plot f against fa, and ignore everything else you calculated.
Where is your conversion to decibels?
Why is your x axis showing up to 1000 when you are plotting f on the x axis and f is at most 100?
1 Comment
Pramod Bharadwaj
on 20 Mar 2016
Categories
Find more on Signal Operations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!