Convert power to decibel and decibel to power.
pow2db(x)db2pow(x)
input data, specified as a numeric vector, matrix, or
multidimensional array. Must be non-negative for numeric x
.
Converted data, same type and dimensions as x
.
# NOT RUN {
db <- pow2db(c(0, 10, 100))
pow <- db2pow(c(-10, 0, 10))
# }
Run the code above in your browser using DataLab