Neighboring distance of data points

版本 2.1.0.0 (1.1 KB) 作者: Joris Meurs
Calculate the distance between neighboring data points
75.0 次下载
更新时间 2016/4/28

查看许可证

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)

引用格式

Joris Meurs (2024). Neighboring distance of data points (https://www.mathworks.com/matlabcentral/fileexchange/56289-neighboring-distance-of-data-points), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2014b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Curve Fitting Toolbox 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
2.1.0.0

Description updated

2.0.0.0

Added picture
Removed error in plot

1.0.0.0