How to solve this error?

1 vue (au cours des 30 derniers jours)
Chee Wan Ting
Chee Wan Ting le 23 Oct 2018
Commenté : Chee Wan Ting le 23 Oct 2018
What does num1 and num2 represents?
And it also has an error :
Undefined function or variable 'normal'.
Error in Coding (line 4)
[C,L] = wavedec(normal(:,num1)',5,'db1');
This is our code:
load('x.dat')
num1=2;
num2=30;
[C,L] = wavedec(normal(:,num1)',5,'db1');
  1 commentaire
madhan ravi
madhan ravi le 23 Oct 2018
What’s normal?

Connectez-vous pour commenter.

Réponse acceptée

Walter Roberson
Walter Roberson le 23 Oct 2018
In the context of that code, normal should be the name of a variable containing multiple signals as channels, and normal(:,num1) should be extracting channel #num1 from the signal.
normal is not being used as a function name here, and there is nothing special about its name as a variable.
It might be used in a context where you were comparing signals between "normal" (healthy) and "abnormal" (diseased) -- but it is just a variable name.
  1 commentaire
Chee Wan Ting
Chee Wan Ting le 23 Oct 2018
Thank you!! I have a better understanding now

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Denoising and Compression dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by