Hello Octave-Community,
I was trying to get some Matlab scripts to work, however, I failed,
because of the missing function db().
db() is part of the "Signal Processing" toolbox in Matlab, and it converts
a value to decibel.
Additionally, it takes optional arguments for mode selection ('Voltage' or
'Power'), and a Resistor value.
This is what db() is described in MatLab:
http://pastebin.com/hGV6ZJnv
I tried to re-implement the function, which looks like this:
http://pastebin.com/dBKXqt3W
This primitive re-implementation lacks some features (usage message, more
error checking), but it works fine for me.
However, maybe there are other people missing this function, and it would
be nice if an implementation of db() would be a part of octave's signal
processing package?
Kind regards,
Wolfgang Wallner
PS: I tried to get more information about db() on the internet, but I
could not find anything.
It is also not in the function list of the Signal Processing toolbox
(http://www.mathworks.com/help/toolbox/signal/f9-131178c.html).
This is strange. However, on my Matlab installation, it is in
"toolbox/signal/signal/db.m".
------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network
management toolset available today. Delivers lowest initial
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Octave-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/octave-dev