count every ten seconds
Show older comments
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 Comment
Walter Roberson
on 4 Sep 2021
Edited: Walter Roberson
on 4 Sep 2021
? That file only has 10 columns ?
Column 3 is numeric and never has the word "chew" ??
Accepted Answer
More Answers (1)
grace khashman
on 7 Sep 2021
0 votes
Categories
Find more on Logical in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!