convert this ploygon from 2d to 3d graph

1 次查看(过去 30 天)
hi
i have this graph
xv = [1,2,3,4.8,8,10,10,5];
yv = [0,4,7.5,7.9,9,4,0,0];
patch(xv,yv,'b');
ylim([-5, 15]);
xlim([0, 15]);
i want to convert this to 3d with z=2 for all point of x-y coordinate
thank in advance regards

采纳的回答

Matt J
Matt J 2013-1-19
zv(1:length(xv))=2;
patch(xv,yv,zv,'b');

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Graph and Network Algorithms 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by