5 nSignals = size(waveform, 2);
7 SNR = inf(1, nSignals);
11 SNR = repmat(SNR, 1, nSignals);
12 elseif (length(SNR) ~= nSignals)
13 robolog('SNR must be scalar or match number of waveforms', 'ERR')
16 robolog('Too many input arguments', 'ERR')
20 avpow =
pwr.meanpwr(waveform);
21 PCol =
pwr(SNR(1), {avpow(1),
'W'});
23 PCol(jj) =
pwr(SNR(jj), {avpow(jj),
'W'});
function robolog(in msg, in varargin)
This function allows the user to print log messages in a standard way.
function getPColFromNumeric_v1(in waveform, in varargin)
Construct array of pwr objects from a numeric signal.