count every ten seconds
Afficher commentaires plus anciens
hello this is my Excel file that im trying to work with using matlab (my file is in desktop)
i am trying to sort every ten seconds in (cloumn 11) into a new clomn (12)
my data as you can see range from 1 to 71658 and it contains the date and time as a string
here is an example of what i am trying to do
for i = 1 to 71658
while (the cell value which contains the seconds in cloumn 11 %10 !=0)
count = how many times the word "chew" appears in cloumn 3
print count in cloumn 13
else
sum = sum+1
print sum in cloumn 12
end
how can i write this code using matlab please help me i am desprate 

1 commentaire
Walter Roberson
le 4 Sep 2021
Modifié(e) : Walter Roberson
le 4 Sep 2021
? That file only has 10 columns ?
Column 3 is numeric and never has the word "chew" ??
Réponse acceptée
Plus de réponses (1)
grace khashman
le 7 Sep 2021
0 votes
Catégories
En savoir plus sur Logical dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!