MATLAB: How take value (column number) from one data set (1×15145 double) and find value corresponding to same row and column associated with another data set (1×4579 double)

cell arraysstructure

I have a value with specific row and column number from one data set s (1×15145 double), and I want to extract value corresponding to same row column number from another data set Time (1×4579 double)

Best Answer

Time(row_from_s, column_from_s)
??
Though with vectors you would normally only use one index.
Example:
[minval, minidx] = min(s);
if minidx > length(Time)
error('Time is too short to get the corresponding position of s');
end
t = Time(minidx);