On 04/27/2011 03:54 AM, Wolfgang Wallner wrote:
> Hello Dan,
>
[snip]
> Would it be possible to include an implementation of db() in future
> releases of Octave?

I'm not a maintainer of packages, but it seems reasonable it should go 
in a package in OctaveForge (signal processing?).  As you point out, the 
documentation could use a bit of cleanup.  It doesn't need much, but its 
always nice to have descriptions to provide clarity so that the user 
doesn't have to think too much.  X, Y, Z is so generic that it takes a 
bit of thinking.  How about something like the following?

%  D = db(V [, R] [,'voltage'])
%
%  V is voltage ratio, R is optional resistance (default R = 1),
%  'voltage' is an optional mode string and
%
%    D = 20 log10(V) - 10 log10(R)
%
%
%  D = db(P, 'power')
%
%  P is power ratio, 'power' is a requisite mode string (resistance
%  is not pertinent in this version), and
%
%    D = 10 log10(P)

That seems to capture the whole idea in a clear and quick way so that 
the user knows without doubt what formula s/he wants and gets.

Dan

------------------------------------------------------------------------------
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

Reply via email to