MATLAB Answers

Aseel H


Asked by Aseel H
on 29 Dec 2011

in function [c,s] = wavedec2(x,n.wname); can any one help me about "s" that is bookkeeping matrix? how it calculate? and if i want separate the subbands from "c" by use "s" so become approximation, vertical, diagonal, horizenital separated subbands... ??



No products are associated with this question.

1 Answer

Answer by Wayne King
on 29 Dec 2011
 Accepted answer

Hi Aseel, You can use detcoef2 and appcoef2 along with the inputs C and S to extract the appropriate coefficients.

For example:

load woman;
[C,S] = wavedec2(X,3,'bior3.5');
% get the horizontal, vertical, and diagonal details at level 1
[H,V,D] = detcoef2('all',C,S,1);
% get the approximation coefficients at level 1
A = appcoef2(C,S,'bior3.5',1);

  1 Comment

Aseel H
on 30 Dec 2011

Thank you Wayne, but if I use lwt2()for multi level as:
X_InPlace = lwt2(X,W,LEVEL,'typeDEC',typeDEC)
What refers to the 'typeDEC',typeDEC?
and also here how separate the subbands?

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply today