I have a dataset containing 1k to 10k points. These points follow certain nonlinear curve (2D or 3D) or 3D surface. A sampling of equidistant points is required (say 100, 200 or 500).
An approach: Sorting and equal interval sampling do not yield a good result, since the curve is nonlinear. It works only when the curve is 2D and symmetric.
As an example, z=x^3+x*y^2, x=[0, 1], y=[-1, 3]
.
How to sample equidistant points from large dataset using Matlab.
It is not clear what you want to do. From what you wrote I assume the following MATLAB functions would help: https://se.mathworks.com/help/stats/knnsearch.html https://se.mathworks.com/help/stats/pdist.html?s_tid=doc_ta
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.