convert this ploygon from 2d to 3d graph

1 Ansicht (letzte 30 Tage)
mangood UK
mangood UK am 19 Jan. 2013
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
  1 Kommentar
Image Analyst
Image Analyst am 19 Jan. 2013
What do you want it to look like? Like just a flat slab?

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Matt J
Matt J am 19 Jan. 2013
zv(1:length(xv))=2;
patch(xv,yv,zv,'b');
  1 Kommentar
mangood UK
mangood UK am 19 Jan. 2013
hi matt
the graph still 2d !!
is their any change must i do in properties

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Graph and Network Algorithms finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by