Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
368 views
in Technique[技术] by (71.8m points)

matlab - I am trying add my own wavelet with 'wavemngr 'command in matlb

i am working a article 'Biorthogonal wavelet filters for compressed sensing ECG reconstruction' and Doi: https://doi.org/10.1016/j.bspc.2018.08.011

1: define Primal and dual coefficients (Df=primal coefficients and Rf=Dual coefficients) in dew1.mat

Df = [0.070710678 , 0.353553 , 0.565685 ,  0.353553391 , 0.070710678 ];Rf = [0.082496255 ,  -0.41248,  0.271057 , 1.53206913 , 0.271057071 , -0.41248 , 0.082496];save('dew1','Df','Rf')

2: add my wavelet with 'wavemngr'command in matlab: wavemngr('add','dewlet','dew1',2,'','dew1.mat')

3: plot wavelet and scaling filters in synthesis and recostruction section:

[LoD,HiD,LoR,HiR] = wfilters('dew1');
[LoD' HiD' LoR' HiR']=

     0   -0.0825    0.0825         0
     0   -0.4125   -0.4125         0
0.0707   -0.2711    0.2711    0.0707
0.3536    1.5321    1.5321   -0.3536
0.5657   -0.2711    0.2711    0.5657
0.3536   -0.4125   -0.4125   -0.3536
0.0707   -0.0825    0.0825    0.0707
     0         0         0         0

my question: why zero padding in matlab like above???How do I change this code to get the result of the article?(my result above and result of paper below) How do I change the code to get the result of the article?

0.0707    0        0.0825     0
0.3536    0.0825   -0.4125    -0.0707
0.5657    0.4125   0.2711     0.3536
0.3536    0.2711   1.5321     -0.5657
0.0707    -1.5321  0.2711     0.3536
0         0.2711  -0.4125     -0.0707
0         0        0.0825     0.4125
0         0        0           0.0825
question from:https://stackoverflow.com/questions/65869890/i-am-trying-add-my-own-wavelet-with-wavemngr-command-in-matlb

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...