Resampling a set of 2D Points to a certain value
8 views (last 30 days)
Show older comments
Hi,
I have set of 2D Points in a matrix.Lets assume,that its size is around 30. I would like to resample it to around 55 points,with no duplication of points as well as retaining the initial coordinates.
I would be really glad,if someone can let me know regarding this.
0 Comments
Accepted Answer
KSSV
on 1 Nov 2018
Let x and y be your 2D points which are 30 in number.
xi = linspace(min(x),max(x),50) ;
yi = interp1(x,y,xi) ;
iwant = [xi yi]
3 Comments
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!