Neighboring distance of data points
File name : 'ndistance.m'. This file can be used
for calculating the distance between neighbouring data
points based on Pythagoras theory:
d = sqrt((X(l+1)-X(l)).^2+(Y(l+1)-Y(l)).^2)
or in short:
d = sqrt((dX).^2+(dY).^2))
Four input values: 'X', 'Y'
One output value: 'D'
X = vector of x-values
Y = vector of y-values
D = distance between two neighbouring data points
Additionally, a plot of the distance against the Y-vector
will be generated
Input syntax: d = ndistance(X,Y)
Developed by Joris Meurs BASc (2016)
Citar como
Joris Meurs (2024). Neighboring distance of data points (https://www.mathworks.com/matlabcentral/fileexchange/56289-neighboring-distance-of-data-points), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Compatibilidad con las plataformas
Windows macOS LinuxCategorías
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.