Why the loop is not running?

2 visualizaciones (últimos 30 días)
SOMALI ROY
SOMALI ROY el 22 de Dic. de 2020
Comentada: Walter Roberson el 28 de Dic. de 2020
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 comentarios
SOMALI ROY
SOMALI ROY el 23 de Dic. de 2020
Thanks for mentioning.
Below mentioned:
a =
"db2"
Error in bestwavelet (line 9)
[c,info] = ufwt(s,a,1);
Walter Roberson
Walter Roberson el 28 de Dic. de 2020

Iniciar sesión para comentar.

Respuesta aceptada

VBBV
VBBV el 22 de Dic. de 2020
%rue
a =wt{i};
Use curly braces for strings
  4 comentarios
VBBV
VBBV el 23 de Dic. de 2020
Do you get any error after correcting ?
SOMALI ROY
SOMALI ROY el 28 de Dic. de 2020
No, I didnt have any error. thanks

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Discrete Multiresolution Analysis en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by