HELP! MATLAB vector value location ID? In MATLAB, say I have two vectors of the same length -- because one is dependent on the other. In my case the independent vector is t, time, and the dependent is p, pressure. t = 0:500 with an arbitrary time step (finer than 0.2 seconds). I would like to know the easiest way to extract the value of p at t = 300.2. Any ideas?