0% found this document useful (0 votes)
630 views1 page

DWT and IDWT Code in Matlab

This document performs a discrete wavelet transform (DWT) on a signal x using the Haar wavelet, plots the original signal, DWT coefficients a and b, and verifies reconstruction by performing the inverse DWT (IDWT) which recovers the original signal x. The DWT decomposes the signal into coarse and detail coefficients a and b, and IDWT combines these to reconstruct x, demonstrating the transform is reversible.

Uploaded by

mkrishnad
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
630 views1 page

DWT and IDWT Code in Matlab

This document performs a discrete wavelet transform (DWT) on a signal x using the Haar wavelet, plots the original signal, DWT coefficients a and b, and verifies reconstruction by performing the inverse DWT (IDWT) which recovers the original signal x. The DWT decomposes the signal into coarse and detail coefficients a and b, and IDWT combines these to reconstruct x, demonstrating the transform is reversible.

Uploaded by

mkrishnad
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

x=[1 2 3 4 2 3 4 1];

subplot(3,1,1);
stem(x);
[a,b]=dwt(x,'db1');
subplot(3,1,2);
stem(a);
subplot(3,1,3);
stem(b);
x=IDWT(a,b,'db1')

Coefficients of DWT:
a =2.1213 4.9497 3.5355 3.5355
b = -0.7071 -0.7071 -0.7071 2.1213
Reconstruction of original signal by IDWT:
x =1.0000 2.0000 3.0000 4.0000 2.0000 3.0000 4.0000 1.0000

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy