count every ten seconds
Mostrar comentarios más antiguos
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 comentario
Walter Roberson
el 4 de Sept. de 2021
Editada: Walter Roberson
el 4 de Sept. de 2021
? That file only has 10 columns ?
Column 3 is numeric and never has the word "chew" ??
Respuesta aceptada
Más respuestas (1)
grace khashman
el 7 de Sept. de 2021
0 votos
Categorías
Más información sobre Logical en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!