diff --git a/matlab/tfgm/utils/db.m b/matlab/tfgm/utils/db.m index dd0ccf488de1cde98e0ae9ec67e9aaa5939df726..5832d74a126bba2352ddd191ec3ddc75c13bf726 100644 --- a/matlab/tfgm/utils/db.m +++ b/matlab/tfgm/utils/db.m @@ -1,6 +1,12 @@ function x_db = db(x) %% x_db = db(x) -% Converts the elements of x to decibels (dB). +% Linear to decibel (dB) conversion +% Inputs +% - x : scalar or nd-array +% Values to be converted +% Output +% x_db (scalar or nd-array) : conversion of input 'x' in dB. +% % Author: Marina KREME %% x_db = 20*log10(abs(x));