How to save 'detail coefficient' values in wavelet analysis using wavelet toolbox software.
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
I am doing a one dimensional discrete wavelet analysis using wavelet toolbox software. I would like to know how to save the values of the coefficients of detail.(d3,d2,d1 etc). I am able to save the coeffs of approximation , but not the coeffs of detail. How do I do this ?
1 Kommentar
Igor
am 28 Feb. 2015
Do you want to do this via the command line?
If so, just do something like this:
[C, L] = wavedec(Your_signal, Desired_level, 'Your_wavelet');
Then extract the detail coeffs through the "detcoef" function. For example:
[C, L] = wavedec(sig_new, 5, 'db8');
[cD1, cD2, cD3, cD4, cD5] = detcoef(C, L, 1:5);
subplot(5,1,1); plot(cD1); title('Coeff 1'); grid on; axis tight;
subplot(5,1,2); plot(cD2); title('Coeff 2'); grid on; axis tight;
subplot(5,1,3); plot(cD3); title('Coeff 3'); grid on; axis tight;
subplot(5,1,4); plot(cD4); title('Coeff 4'); grid on; axis tight;
subplot(5,1,5); plot(cD5); title('Coeff 5'); grid on; axis tight;
Antworten (0)
Siehe auch
Kategorien
Mehr zu Continuous Wavelet Transforms finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!