%% Power Values of Random Numbers
% Generate a 2-by-4-by-2 array of Gaussian random numbers. Assume the numbers are expressed in decibels and compute the corresponding power measurements.

r = randn(2,4,2);

pows = db2pow(r)

%
% Use the definition to check the calculation.

chck = 10.^(r/10)

% Copyright 2015 The MathWorks, Inc.