How to save 'detail coefficient' values in wavelet analysis using wavelet toolbox software.

3 vues (au cours des 30 derniers jours)
Sowmya
Sowmya le 27 Fév 2015
Commenté : Igor le 28 Fév 2015
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 commentaire
Igor
Igor le 28 Fév 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;

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Continuous Wavelet Transforms dans Help Center et File Exchange

Produits

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by