cut x and y array on datetime

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

lo = x(x <= specific_date);
y_out = y(lo);

More Answers (0)

Categories

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!