小波变换,急求高手帮忙!
本帖最后由 wdhd 于 2016-9-13 14:07 编辑我取函数0.8*sin(x/65)中200个点放在S矩阵,然后随机产生一个200数据的正态分布矩阵R,S+R相加得到W
。想对W进行小波变换,请问该如何进行?高手们指教啊!万分感谢!
>> x=0;
for n=1:200;
S(n,1)=0.8*sin(x/65);
x=x+2;
end
S
R=randn(200,1)
W=S+R;
>> W
W =
-0.4326
-1.6410
0.1745
0.3614
-1.0483
1.3135
1.3360
0.1333
0.5222
0.3934
0.0556
0.9914
-0.2996
2.4947
0.1977
0.4702
1.4449
0.4589
0.3251
-0.3908
0.7562
-0.8545
1.2154
2.1436
-0.1533
1.4145
1.8279
-1.0030
-0.8339
1.1940
0.2381
1.3425
1.4821
1.3917
1.9827
1.3730
1.9066
-0.4761
0.7166
0.5889
-0.8499
1.0194
-0.2873
2.1907
-0.0238
1.3149
1.0097
-0.1281
-1.3742
0.7392
-0.2111
1.4145
1.3074
2.4910
1.3880
0.1505
1.1711
-0.2225
0.7623
0.7280
0.7699
0.4449
1.8500
-1.1275
1.1655
1.6231
1.4478
1.2834
0.7340
1.3582
1.2367
0.3983
0.2620
0.3285
-0.8664
0.3584
0.6941
0.8731
1.9839
0.1710
1.1263
1.2827
1.4048
-0.5485
0.6349
0.6397
-0.6274
-0.3835
1.4186
0.1823
0.6809
0.3560
-0.3908
-0.3384
0.6410
-0.7765
0.9305
0.6940
-0.7210
-0.1894
-1.1361
-2.1752
0.9888
-0.5407
0.2807
0.1628
-0.0743
-1.1241
-1.0915
-0.5430
-1.3784
-1.2722
1.2326
-0.2075
-1.5037
-0.3505
-1.4601
-1.7033
-0.6370
0.5560
-0.2900
0.2171
-1.6276
-0.9403
-0.7616
-1.7313
-1.8561
0.3766
-0.5609
-1.2342
0.2003
-0.3896
-1.6262
0.6885
-0.3756
0.8005
0.4469
-1.3874
-2.0065
-0.7983
-1.0660
-1.5883
-0.2556
0.7272
-1.3150
-1.6217
-1.0270
-0.1227
-1.6442
-1.9948
-0.9161
-0.8635
-0.3142
-1.3955
-0.9494
-1.2335
-0.8763
0.7408
-1.3976
-2.1344
-0.3129
-1.6804
-0.7347
-1.3911
-0.2205
-0.1945
-0.9420
-2.7828
-0.5854
0.8862
0.3235
-2.2628
-0.7479
-1.3371
-1.6655
-1.8603
-0.3215
-1.0234
-0.5216
-0.9279
-1.0072
-0.1529
0.2233
1.6265
-1.8232
-1.4683
0.6128
-0.7938
-1.7638
-0.0452
1.2146
0.3918
1.6640
0.2342
1.6175
-0.5633
-1.3396
-0.3870
1.0385
-1.2437
>>
楼主想用哪种小波? 我也不是很清楚有些什么小波,就用haar小波吧,谢谢了,帮忙弄下…… 选择db5正交小波 我知道
加我的QQ630166691
页:
[1]