How to find difference of X values and Y values in given set of co-ordinate points?

2 次查看(过去 30 天)
I have a co-ordinate points(x,y) such as (8,6),(5,5),(5,7),(11,9),(10,12),(11,7). In this, to compare consecutive two co-ordinate values in the given order and find difference of 'x' values and 'y' values. If difference of both 'x' values and 'y' values is less than or equal to 2, to eliminate the second(predecessor) co-ordinate value otherwise to store both a co-ordinate vales. Then continue the step till the last co-ordinate value. How can i get matlab code for this?

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 NaNs 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by