MATLAB: Finding data values correspondending to a certain sample.

correspondendingfindfind datamatrixrowsample

I have 575×1 matrix which tells me on what sample a certain Parkinson's disease symptom occurs. And I have accelerometer data synchronised to it, 3846×1. Now I want to know what the data values are at the sample a symptom occurs. So the 575×1 matrix is filled with values in between 0 and 3846. The result must be a 575×1 matrix with acceleromter data.
Could someone help me?

Best Answer

Index the data value array with the time array? Though it is not clear what you want to do with the time entries that are zero.