helix

Create a spiral between two cartesian points in MATLAB

不羁的心 提交于 2019-12-11 04:33:38
问题 Perhaps this is a basic question but I haven't been able to find anything specifically like this and I'm wondering how to do it in the best way. I have two sets of points (x1,y1,z1) and (x2,y2,z2) and I have converted them into polar coordinates. I would like to create a counter-clockwise helix of decreasing radius to reach the second point. I would also like to specify how many revolutions it takes. All of the examples I have seen are two points on the x axis and going clockwise. Any