title: How to find the indices that correspond to t from −10 to 9.99
body: <p>Say I have a vector: t=-10:0.01:9.99; which has a different vector length than a vector y. How do I find the indices of y that correspond to t?</p>