constructing Parallel curves offset
6 次查看(过去 30 天)
显示 更早的评论
Can anyoane tell be if it is possible to buil in Matlab an offset for a curve ? If yes, which is the approche ? This is what I got until now. I think the offset is changing because of the concavity.
Thank you very much in advance.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/161025/image.jpeg)
0 个评论
采纳的回答
Star Strider
2017-2-23
See if this does what you want:
x = [10 30 10 25]; % Create Data: Original
y = 10 : 20 : 70; % Create Data: Original
xof1 = x - 2; % Create Data: Negative Offset
xof2 = x + 2; % Create Data: Positive Offset
figure(1)
plot(x, y)
hold on
plot(xof1, y)
plot(xof2, y)
hold off
axis([-20 60 10 70])
4 个评论
Star Strider
2017-2-24
Road design is not an area of my expertise. I have no idea what the constraints and other problems are.
You may need to use more points to approximate your road centre-line and the parallels.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Vehicle Scenarios 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!