Diagonal Line in fill plot?
3 次查看(过去 30 天)
显示 更早的评论
Got i hope a simple question for you all , in my foillowing code i have a random diagonal line and i have no idea where it is coming from?
any help would be great thank you in advance :)
RoadVerts =[-1, 9, 9, 11, 11, 21, 21, 11, 11, 9, 9, -1, -1
11, 11, 21, 21, 11, 11, 9, 9, -1, -1, 9, 9, 11
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1];
fill(RoadVerts(1:1,:),RoadVerts(1:2,:),'w');
xlim([0 20])
ylim([0 20])
zlim([0 5])
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Operating on Diagonal Matrices 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!