This example shows how to obtain the natural logarithm of scattering coefficients.
Load a noisy Doppler signal and create a wavelet time scattering network that can be used with the signal. Return the scattering coefficients.
load noisdopp
sf = waveletScattering(‘SignalLength’,numel(noisdopp));
S = scatteringTransform(sf,noisdopp);
Calculate the natural logarithm of the scattering coefficients. Display the number of rows in the table containing the first-order scattering coefficients.
slog = log(sf,S);
coefOrder = 1;
display([‘Number of rows: ‘,…
num2str(size(S{coefOrder+1},1))])
Number of rows: 41
Choose a row from the first-order scattering coefficients table. Take the natural logarithm of the absolute value of the scattering coefficients in that row. Compare with the corresponding row in slog and confirm they are equal.
row = 23;
tmp1 = slog{coefOrder+1}.signals{row};
tmp2 = log(abs(S{coefOrder+1}.signals{row}));
disp([‘Max Difference of Scattering Coefficients: ‘,…
num2str(max(abs(tmp1(:)-tmp2(:))))])
Max Difference of Scattering Coefficients: 0
相关资源:Cwtype摩尔斯电码学习软件,发 软件,汉化版本_电脑模拟CW-电信…
声明:本站部分文章及图片源自用户投稿,如本站任何资料有侵权请您尽早请联系jinwei@zod.com.cn进行处理,非常感谢!