Calculate Asynchrony/Euclidean Distance Between Matches
Versión 1.251 (3,13 KB) por
Alexis
Find the mutual closest pairwise matches between observations in two vectors
Finds the matches in any two vectors, ideally set up for calculating temporal asynchrony between events (e.g., within a sensorimotor timing experiment).
This function accepts two vectors (e.g., time stamps, drum hits, word onsets) and looks for the mutual closest pairwise matches between successive observations, dropping unpaired points (e.g., extra or omitted events). No point can be paired more than once.
The resultant absolute distances (e.g., asynchrony in milliseconds) between each pair of points are returned as a new vector, plus the indices of paired/unpaired observations.
You can also optionally plot the two input vectors along with their proposed pairings by flagging third optional argument as '1'.
Compatibilidad con la versión de MATLAB
Se creó con
R2019b
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS LinuxCategorías
Más información sobre Genetic Algorithm en Help Center y MATLAB Answers.
Etiquetas
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.