create many points on the same line
11 次查看(过去 30 天)
显示 更早的评论
hi
i have two points - x1,y1,z1; x2,y2,z2
i want to create a vector with many points between these two points, and that these points will all be on the same line.
how can i do that?
thanks!
0 个评论
采纳的回答
更多回答(1 个)
Image Analyst
2012-12-30
As an aside, if you want the points to be equidistant along some arbitrary curve, bending and turning all over the place, then you can use John D'Errico's interparc http://www.mathworks.com/matlabcentral/fileexchange/34874-interparc. linspace() would not work in that situation. Though for a perfectly straight line like your current situation, Matt's solution is totally accurate.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Descriptive Statistics 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!