cut x and y array on datetime

2 views (last 30 days)
Dear all,
I have an x and y vector. x is my Datetime vector and y is my biosignal. x and y have the same length.
How do i cut both vectors from start to a specific date?
Thanks

Accepted Answer

Andrei Bobrov
Andrei Bobrov on 31 Oct 2018
lo = x(x <= specific_date);
y_out = y(lo);

More Answers (0)

Categories

Find more on Dates and Time 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!