I have two datetime vectors of differing lengths (500×1 and 15000×1) and was wondering how to produce a 500×15000 matrix of the differences between these times. I've previously used pdist2() to answer this question for double vectors, but can't find the function to do it for datetimes.
MATLAB: Pairwise difference of datetime vectors (i.e. pdist for time data)
datetimedifferencedistanceMATLABpairwisepdisttime
Best Answer