I have this 5x1 datetime array:
14-May-2020 10:47:18
14-May-2020 10:47:19
14-May-2020 10:47:20
14-May-2020 10:53:36
14-May-2020 10:54:05
I want to remove all datetimes within 2 seconds of another datetime, so in this case I want to remove the second and third datetime '14-May-2020 10:47:19' and '14-May-2020 10:47:20' and keep '14-May-2020 10:47:18'. Is there an easy way to do this?
2 Comments
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/525476-removing-close-datetimes-from-datetime-array#comment_847623
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/525476-removing-close-datetimes-from-datetime-array#comment_847623
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/525476-removing-close-datetimes-from-datetime-array#comment_857458
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/525476-removing-close-datetimes-from-datetime-array#comment_857458
Sign in to comment.