The code (given below) has been made to run loop for a series of wavelets in 'ufwt' function. When I am running the code, it is showing error; but when i am using a specific wavelet replacing 'a', then the code is running. Kindly help.
the code as follows:
wt = ["db2";"db4";"db6";"db8";"db10"];
for i=1:5
a = wt(i) % Selection of wavelet according to the run number
[c,info] = ufwt(s,a,1);
snent(i) = wentropy(c(1),'shannon');
end

3 件のコメント

Jan
Jan 2020 年 12 月 22 日
A hint: Whenever you mention an error message in the forum, add a copy of the complete message. The information is very useful to solve the problem.
SOMALI ROY
SOMALI ROY 2020 年 12 月 23 日
Thanks for mentioning.
Below mentioned:
a =
"db2"
Error in bestwavelet (line 9)
[c,info] = ufwt(s,a,1);
Walter Roberson
Walter Roberson 2020 年 12 月 28 日

サインインしてコメントする。

 採用された回答

VBBV
VBBV 2020 年 12 月 22 日

0 投票

%rue
a =wt{i};
Use curly braces for strings

4 件のコメント

VBBV
VBBV 2020 年 12 月 22 日
Or use single quotes in the vector wt
SOMALI ROY
SOMALI ROY 2020 年 12 月 23 日
Thanks !
After correcing, the result is
a = 'db2'
a = 'db4'
a = 'db6'
a = 'db8'
a = 'db10'
But we want wavelet transform and to plot, which is unable to do. Can you provide any help!
Thanks anyway.
VBBV
VBBV 2020 年 12 月 23 日
Do you get any error after correcting ?
SOMALI ROY
SOMALI ROY 2020 年 12 月 28 日
No, I didnt have any error. thanks

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeWavelet Toolbox についてさらに検索

製品

タグ

質問済み:

2020 年 12 月 22 日

コメント済み:

2020 年 12 月 28 日

Community Treasure Hunt

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

Start Hunting!

Translated by