diff options
author | Rashmi Patankar | 2025-04-30 15:01:49 +0530 |
---|---|---|
committer | GitHub | 2025-04-30 15:01:49 +0530 |
commit | 0495a12104d8466509769fc34271757f00577709 (patch) | |
tree | cb208dd421d39051d85f4ef0476c9208ef2c41ab /macros/pow2db.sci | |
parent | a0bff158d21c2c12a12781bc5019f3a45bd866b2 (diff) | |
parent | ec6379e7494ff4ca2dc7c7524013d109be450bae (diff) | |
download | FOSSEE-Signal-Processing-Toolbox-master.tar.gz FOSSEE-Signal-Processing-Toolbox-master.tar.bz2 FOSSEE-Signal-Processing-Toolbox-master.zip |
Fixed Failing test scripts
Diffstat (limited to 'macros/pow2db.sci')
-rw-r--r-- | macros/pow2db.sci | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/macros/pow2db.sci b/macros/pow2db.sci index 5be0941..f8a6523 100644 --- a/macros/pow2db.sci +++ b/macros/pow2db.sci @@ -1,10 +1,11 @@ -//POW2DB Power to dB conversion + +function [ydb]=pow2db(y) + //POW2DB Power to dB conversion //YDB = POW2DB(Y) convert the data Y into its corresponding dB value YDB //Example: //Calculate ratio of 2000W to 2W in decibels //y1 = pow2db(2000/2) //Answer in db //Author : Debdeep Dey -function [ydb]=pow2db(y) rhs = argn(2) if(rhs~=1) error("Wrong number of input arguments.") |