What's the best way to interpolate the vertices of a polygon?
8 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
mark palmer
el 26 de Jun. de 2020
Comentada: darova
el 28 de Jun. de 2020
What's the best way to interpolate the vertices of a polygon?
Take a triangle with vertices
pKL = [429 92; 326 334; 459 98];
interpp = 5;
interp2(pKL,interpp) % NO!
resample(pKL,interpp,1)) % NO!
How can I get interpp=5 points between 429 and 326, then 326 and 459, then 459 back to 429 in the x direction, and the same idea in the y direction, and combine it all in a single 2D array? I tried interp2d and resample, but it doesn't work. I can do it with a loop, but that feels like too many lines of code.
0 comentarios
Respuesta aceptada
darova
el 27 de Jun. de 2020
The best way is described here: Interpolation of 3D point data
2 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Interpolation en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!