Reduce runtime of my code
Mostrar comentarios más antiguos
In my code I need to find the time in seconds in the table called "data", being that the seconds time are storage in the first column.
I need to do it a lot of times in my code and this operation take a lot of time to run.
How I can reduce this runtime?
aux = fix(totalSeconds/60)*60;
ltime = find(data(:,1)== aux);
dataTime = data(ltime,:);
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Loops and Conditional Statements 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!