Effacer les filtres
Effacer les filtres

Help setting the lower threshold for filter....

3 vues (au cours des 30 derniers jours)
MSP
MSP le 8 Oct 2016
Commenté : Image Analyst le 9 Oct 2016
THANKS FOR YOUR TIME FIRST. PLS HELP ME OUT I HAVE BEEN STUCK HERE FOR A LONG TIME
Here is a function that i wrote to detect peaks named (filterbeeps) In the mainfile what i want is to get the value of c.
If it (c<9) happens then i want to make third argument of (filterbeeps.m) (n-s) where s is the for loop variable.so that i can get c >9............... if that does not happen i want to increase the value of s and then check again
Else if (c>13) happens then i want to make third argument of (filterbeeps.m) (n+s) where s is the for loop variable.so that i can get c < 13.............. if that does not happen i want to increase the value of s and then check again
So basically i want c to be within 9 to 13
Just note that the average value of x i get from arduino is around the range (1.5-2.3)
  1 commentaire
Image Analyst
Image Analyst le 9 Oct 2016
"Here is a function that i wrote"
Where is that function that you wrote? You forgot to put it into the body of your post or attach it with the paper clip icon. Please edit your post to include the code that you wrote and explain what is wrong with it such that normal debugging is unable to fix it.

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Arduino Hardware 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