From a97f2644400e9deee5b30cb2d6446b35ceaad216 Mon Sep 17 00:00:00 2001 From: Marina Kreme <amamarinak@gmail.com> Date: Sat, 21 Nov 2020 06:54:07 +0100 Subject: [PATCH] add doc --- matlab/tfgm/utils/db.m | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/matlab/tfgm/utils/db.m b/matlab/tfgm/utils/db.m index dd0ccf4..5832d74 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)); -- GitLab